retitle 538100 dash built-in echo expands \nnn sequences
severity 538100 wishlist
tags 538100 = upstream wontfix
merge 550399 538100
quit
Hi Christoph,
Christoph Anton Mitterer wrote:
> file_entry_quoted="$( printf "${file}" | sed --regexp-extended 's/(.)/\\\1/g'
> )"
> echo $file_entry_quoted
> echo "$file_entry_quoted"
[...]
> \.\/\d \/\i\m\g\e\.\o\g
> \.\/\d \/\i\m\g\e\.\o\g
> (that's a tab after the d, the \a seem to be replaced by 0x7)
Using
printf '%s\n' "$file_entry_quoted"
works.
Sorry for the long silence,
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]