On Mon, Aug 14, 2023, at 1:27 AM, Eduardo Bustamante wrote:
> The echo command is consuming the '-e', as it is a flag. Instead, try
> using:
>
> printf '%s\n' "${x/,/ }"
Also note that echo wouldn't have consumed the "-e" had the expansions
been quoted properly (as Eduardo did in his printf example):
bash-5.2$ x='-e,b,c'
bash-5.2$ echo "${x//,/ }"
-e b c
bash-5.2$ echo "${x/,/ }"
-e b,c
--
vq
