0x00 and 0x0a has no output in printf "%q" $ for i in {0..9} a; do printf "%q\n" "`echo -en \"\x0$i\"`"; done '' $'\001' $'\002' $'\003' $'\004' $'\005' $'\006' $'\a' $'\b' $'\t' '' ------------ $'\x00' outputs nothing hd <(echo $'\x00') 00000000 0a |.| 00000001 ------------ $'\x01' outputs twice. $ hd <(echo -n $'\x01') 00000000 01 01 |..| 00000002 thanks for your great job have a nice day (God Save Linux!) bye
Hi, I'm using older bash 3.2.39, so please forgiveme if in your newer
bash this issue does not arise.
- printf "%q" and $'...' Antonio Macchi
- Re: printf "%q" and $'...' Maarten Billemont
- Re: printf "%q" and $'...' Greg Wooledge
- Re: printf "%q" and $'...' Antonio Macchi
- Re: printf "%q" and $'.... Andreas Schwab
- Re: printf "%q" and $'.... Lhunath (Maarten Billemont)
- Re: printf "%q" and $'...' Antonio Macchi
- Re: printf "%q" and $'...' Maarten Billemont
- Re: printf "%q" and $'...' Andreas Schwab
- Re: printf "%q" and $'...' Greg Wooledge
- Re: printf "%q" and $'...' Antonio Macchi