[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash is unable to process ASCII NUL characters
From: |
Ulrich Windl |
Subject: |
Re: Bash is unable to process ASCII NUL characters |
Date: |
Thu, 17 Jul 2003 08:17:19 +0200 |
On 23 Jun 2003 at 12:30, Paul Jarc wrote:
> "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> wrote:
> > Description:
> > Bash is unable to process ASCII NUL characters: I cannot pass binary
> > strings via a script to an application, because Bash (or readline)
> > strips away the NUL characters
>
> Are you trying to include NUL characters in command-line arguments?
> The kernel prevents that; there's nothing bach can do. (It could be
> done for builtins, but that might be too surprising.)
Paul,
you are right, argv[] has problems with NULL characters. I didn't think of
that when writing the bug report. It seems there is a problem where UNIX
doesn't handle data transparently there. Meanwhile I've worked around the
problem, but maybe the bash manual page could have a warning that NULL
characters are very special.
Regards,
Ulrich
P.S. Sorry for the delay, back from vacation with 2800 messages waiting to be
read...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Bash is unable to process ASCII NUL characters,
Ulrich Windl <=