"Nathan Coulter" <[EMAIL PROTECTED]> writes: >> read -d $'\0' will do most of what you want, with one limitation. The ^^^^^^^^
This is actually equivalent to read -d ''. > This doesn't seem be available in my version. Is it a newer feature? > > $bash --version > GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) > Copyright (C) 2002 Free Software Foundation, Inc. > > $printf 'hello\0there' | { read -d$'\0'; echo $REPLY ; } ^^^^^^^ This is equivalent to read -d. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash