Skip to content

Commit 5d0fa8e

Browse files
bug #57853 [Console] Fix side-effects from running bash completions (Seldaek)
This PR was merged into the 5.4 branch. Discussion ---------- [Console] Fix side-effects from running bash completions | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix composer/composer#12015 | License | MIT Fixes issues in symfony bash completions having side-effects for other completions. See composer/composer#12015 for details. I identified this IFS line as causing the issue.. But it was introduced here e9e0c07 (cc `@GromNaN`) probably for a good reason. So I don't think this is mergeable as is, but we should see what can be done to set IFS where needed per process call and not change it globally like that. Commits ------- 5456645 [Console] Fix side-effects from running bash completions
2 parents 0a01cc5 + 5456645 commit 5d0fa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Resources/completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
_sf_{{ COMMAND_NAME }}() {
99
# Use newline as only separator to allow space in completion values
10-
IFS=$'\n'
10+
local IFS=$'\n'
1111
local sf_cmd="${COMP_WORDS[0]}"
1212

1313
# for an alias, get the real script behind it

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy