bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with @Q


From: isabella parakiss
Subject: Problem with @Q
Date: Sat, 29 Aug 2015 08:40:59 +0200

In the devel branch, setting IFS=\' seems to break @Q:

$ arr=(a b c)
$ echo  ${arr[@]@Q}  | sed -n l
'a' 'b' 'c'$                              <- correct
$ echo "${arr[@]@Q}" | sed -n l
'a' 'b' 'c'$                              <- correct

$ IFS=\'
$ echo  ${arr[@]@Q}  | sed -n l
 a   b   c$                               <- wrong(?)
$ echo "${arr[@]@Q}" | sed -n l
bash: INFORM: dequote_string: string with bare CTLESC
bash: INFORM: dequote_string: string with bare CTLESC
bash: INFORM: dequote_string: string with bare CTLESC
\001 a  \001 b  \001 c$                   <- definitely wrong


---
xoxo iza



reply via email to

[Prev in Thread] Current Thread [Next in Thread]