Commit 2924491
committed
bug symfony#61724 [Console] Fix handling of
This PR was merged into the 6.4 branch.
Discussion
----------
[Console] Fix handling of `\E` in Bash completion
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Related to symfony#43665
The problem with `$(printf -- '%b' "$w")` is that it also interprets `\E` as an escape sequence.
For example, in
```bash
bin/console debug:form 'Symfony\Component\Form\Extension\Core\Type\EmailType'
```
the `\E` in the class name is replaced with the ASCII escape character:
```
Symfony\Component\Form�xtension\Core\Type�mailType
```
This PR switches to simply replacing double backslashes with a single one instead of using `printf -- '%b'`.
Commits
-------
f1f50e6 [Console] Fix handling of `\E` in Bash completion\E in Bash completion (HypeMC)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments