From owner-freebsd-bugs Tue Aug 24 9:30:20 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from mta3.rcsntx.swbell.net (mta3.rcsntx.swbell.net [151.164.30.27]) by hub.freebsd.org (Postfix) with ESMTP id 1A081159AD for ; Tue, 24 Aug 1999 09:29:48 -0700 (PDT) (envelope-from chris@holly.dyndns.org) Received: from holly.dyndns.org (adsl-216-62-154-215.dsl.hstntx.swbell.net) by mta3.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.05.24.18.28.p7) with ESMTP id <0FGZ00MY44TGVI@mta3.rcsntx.swbell.net> for freebsd-bugs@FreeBSD.ORG; Tue, 24 Aug 1999 09:41:41 -0500 (CDT) Received: (from chris@localhost) by holly.dyndns.org (8.9.3/8.9.3) id JAA91674; Tue, 24 Aug 1999 09:43:53 -0500 (CDT envelope-from chris) Date: Tue, 24 Aug 1999 09:43:52 -0500 From: Chris Costello Subject: Re: bin/13274: /bin/sh 'read' command does not work correctly In-reply-to: To: Thomas Gellekum Cc: Sheldon Hearn , Chris Piazza , freebsd-bugs@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <19990824094352.I90868@holly.dyndns.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <67252.935481572@axl.noc.iafrica.com> <19990824092120.H90868@holly.dyndns.org> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 |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