bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash "bug" - in "read -e -r var"


From: Chet Ramey
Subject: Re: Bash "bug" - in "read -e -r var"
Date: Mon, 15 Dec 2014 10:40:28 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 12/15/14, 7:11 AM, Dan Douglas wrote:

> I understand that read's now basically useless behavior without -r 
> was originally there to make using it interactively without a line editor 
> slightly easier.

Ask David Korn, since he originally added options to the read builtin.
None of the `pure' Bourne shells ever had it.  It may be the case that
it was easier to use \ to enter characters that were special to word
splitting, since without it it's very difficult to read values containing
spaces when using more than one variable.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]