bug-bash
[Top][All Lists]
Advanced

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

Re: printf "%q" and $'...'


From: pk
Subject: Re: printf "%q" and $'...'
Date: Wed, 25 Nov 2009 15:13:52 +0000

Antonio Macchi wrote:

>> $ printf "\x00\n" | cat -A
>> ^@
> 
> it works, so why...
> 
> $ printf $'\x00' | cat -A
> $

Read carefully ALL the answers you've been given. The short version is that 
$'\x00' is interpreted by bash itself, while '\x00\n' is interpreted by 
printf only. But DO READ the answers you've got, because your question 
denotes you haven't done that.


reply via email to

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