Re: reading ascii-0

2005-03-08 Thread Paul Jarc
Davy Durham <[EMAIL PROTECTED]> wrote: > I was wondering if it's possible to make the build-in 'read' command > not always stop at ascii 0. Shell variable values are null-terminated; they can't hold internal nulls. Even if bash were changed, it's still not possible to pass such values as argume

Re: reading ascii-0

2005-03-08 Thread William Park
On Tue, Mar 08, 2005 at 03:26:37PM -0600, Davy Durham wrote: > Hey, > I was wondering if it's possible to make the build-in 'read' command > not always stop at ascii 0. > > I've got a file "foo" with "asdf\0qwer\n" in it and when I do: > read x < foo > then > echo ${#x} > always returns 4 in