bug-bash
[Top][All Lists]
Advanced

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

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


From: Lhunath (Maarten B.)
Subject: Re: printf "%q" and $'...'
Date: Wed, 25 Nov 2009 16:39:56 +0100

On 25 Nov 2009, at 16:27, Antonio Macchi wrote:

>> imadev:~$ echo $'foo\0bar'
>> foo
> 
> 
> sorry... I'm a little bit confusing... look
> 
> $ echo foo$'\0'bar
> foobar
> 

I expect $'\0' expands to the C-string ''.  Which then gets added to the 
argument after 'foo' and before 'bar'.



reply via email to

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