forwarded 349855 upstream
quit

On Wed, Jan 25, 2006 at 06:25:29PM +0100, Torsten Scheck wrote:
> The character 'octal 201' is dropped when it is stored in a shell
> variable:
> 
> $ x="`printf "xxx\201"`"
> $ echo $x
> xxx

Hi Herbert, I can confirm this.  '\201' is used as CTLESC, and removed
on expansion it seems.  Sorry, I don't have a patch to suggest this
time.

Thanks for the report, Torsten.

Regards, Gerrit.


> I encountered the problem, when a script failed which worked on file
> names containing the special character:
> 
> $ touch "`printf "xxx\201"`"
> $ ls xxx*
> xxx?
> $ set xxx*
> $ ls "$1"
> ls: xxx: No such file or directory
> $ ls "$@"
> ls: xxx: No such file or directory
> 
> With bash there is no problem, so I wonder if this is a dash bug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to