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: Dan Douglas
Subject: Re: Bash "bug" - in "read -e -r var"
Date: Mon, 15 Dec 2014 10:13:10 -0600
User-agent: KMail/4.14.3 (Linux/3.17.3; KDE/4.14.3; x86_64; ; )

On Monday, December 15, 2014 10:47:29 AM Chet Ramey wrote:
> On 12/15/14, 7:11 AM, Dan Douglas wrote:
>
> > I'm generally interested in what read with (or without) -r combined with -e
> > even means.
>
> I'm not sure what you're driving at.  The -e option says how to read the
> line; the -r option affects how the characters are processed after being
> read.
>

Ah ok I thought -e basically negated the effect of -r for some reason but I
guess not (like you can still use \ to escape line continuations without -r it
seems). Long ago I assumed "read <<<str" was equivalent to "read -r <<<$'str'"
based upon what the manual says.

BTW I like how "show-mode-in-prompt On" together with "read -ep prompt" shows
the indicator. That's a nice touch.
--
Dan Douglas



reply via email to

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