Date: Tue, 24 Aug 1999 09:43:52 -0500 From: Chris Costello <chris@calldei.com> To: Thomas Gellekum <tg@ihf.rwth-aachen.de> Cc: Sheldon Hearn <sheldonh@uunet.co.za>, Chris Piazza <cpiazza@home.net>, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/13274: /bin/sh 'read' command does not work correctly Message-ID: <19990824094352.I90868@holly.dyndns.org> In-Reply-To: <kqogfxz1s1.fsf@zabagek.ihf.rwth-aachen.de> References: <67252.935481572@axl.noc.iafrica.com> <kqzozhzjnn.fsf@zabagek.ihf.rwth-aachen.de> <19990824092120.H90868@holly.dyndns.org> <kqogfxz1s1.fsf@zabagek.ihf.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 24, 1999, Thomas Gellekum wrote:
> Index: sh.1
> ===================================================================
> RCS file: /home/ncvs/src/bin/sh/sh.1,v
> retrieving revision 1.23.2.2
> diff -u -r1.23.2.2 sh.1
> --- sh.1 1999/04/19 18:54:06 1.23.2.2
> +++ sh.1 1999/08/24 08:37:29
> @@ -1150,7 +1150,7 @@
> it faster. However, if the current directory is
> renamed, the builtin version of pwd will continue to
> print the old name for the directory.
> -.It Li "read [ -p prompt ] [ -t timeout ] [ -e ] variable ...
> +.It Li "read [ -p prompt ] [ -t timeout ] [ -e ] [ -r] variable ...
^^
There should be a space here.
> -The -e option causes any backslashes in the input to
> -be treated specially. If a backslash is followed by
> -a newline, the backslash and the newline will be
> -deleted. If a backslash is followed by any other
> -character, the backslash will be deleted and the following
> -character will be treated as though it were
> -not in IFS, even if it is.
> +The -e option is deprecated and only here for backward compatibility.
> +.Pp
> +The -r option causes backslashes in the input to be treated
> +like ordinary characters.
`The -e option exists only for backward compatibility with older
scripts.'
Something like that could do better there. :)
--
|Chris Costello <chris@calldei.com>
|Years of development: We finally got one to work.
`-------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990824094352.I90868>
