Repository navigation
Update dependency shfmt to v3.15.0 - #1420
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
mvdan/sh (shfmt)
v3.15.0Compare Source
This release brings the interpreter much closer to Bash and hardens it
against untrusted scripts, so that it fails gracefully rather than
crashing or exhausting memory.
Some of these interpreter fixes may break existing scripts run with
interpor
gosh, as they now behave like Bash:The last command of a pipeline runs in a subshell, so
cmd | read xnolonger sets
xunless thelastpipeoption is set.Unquoted backslashes are removed from assignment values, redirection
targets, case words, and here-strings, as they already were from command
arguments. For example,
x=C:\dirnow assignsC:dir. Quote Windowspaths, as in
x='C:\dir', or use forward slashes.cmd/shfmt
-bl, --block-next-lineandblock_next_lineto place{,then, anddoon their own lines - #721$XDG_CONFIG_HOME/shfmt/editorconfig, and acceptcase_indentandlanguage_dialectas properties - #1402syntax
BlockNextLine, deprecatingFunctionNextLine- #721Redirect.ClosePos, and end heredocs at EOF like Bash, dash, and Zsh - #1428DeclClause.Assigns- #1327CaseItem.Lparen- #1194SplitBraces, and track positions viaBraceExp.LbraceandBraceExp.Rbrace- #1435BinaryNextLineto binary test and arithmetic expressions - #813thenanddoon their own line after multi-line conditions - #1210main "$@"; exit $?on the same line - #564, #679[[ ]]or after escaped newlines - #619, #844, #1290, #1447, #1449a[i]- #1013[[,select, andfunctionwithLangPOSIX- #1092StmtsSeq,InteractiveSeq,Walk, and with heredocs in backquotes, and limit nesting to 10000 levels to avoid stack overflows - #1448, #1458, #1459TryClause,RepeatClause,CallArithm,WordIter.Names,FuncDecl.Args, andParamExp.Subscripts- #1211, #1294, #1297, #1335, #1361, #1438{echo foo}, glob groups in case patterns, and subscripts as words - #1203, #1233, #1295, #1342, #1441syntax/typedjson
shell
Splitto split a command line into words without expanding them, andJointo quote words back into oneMatchto match a string against a pattern likecaseand[[ ]]doGlobto expand patterns over anfs.FSlike Bash, with**and brace expansioninterp
Runner.WaitBackgroundto wait for all background jobs - #1431BackgroundContextso that background jobs can outlive eachRuncall - #1440ProcSubstHandlerto customize process substitutionsExitandFatalso that exec handlers can exit the shellWithHandlerContextto call the interpreter back from handlersjobs,kill,disown, andumaskbuiltins minimally, and expand$!to a real PID where possible - #1401, #1411, #1440read -d,-n, and-N,shopt -q, and thelastpipeoption - #551xtrace- #753Dirafter a reset change directory likecd- #1125evalto 1000 levelsexpand
AssignValueto expand tildes after colons in assignments - #1451Config, fixing races between concurrent calls${var@op}, and anchored replacements like Bash - #1081, #1442$'\cX'control-character escapes - #1450set -u,read, and brace expansionpattern
fileutil
env -Sshebangs inShebang- #1465Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.