bug-bash
[Top][All Lists]
Advanced

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

Re: Sourcing a file ending in \<newline> disables aliases for 1 command


From: Chet Ramey
Subject: Re: Sourcing a file ending in \<newline> disables aliases for 1 command
Date: Wed, 08 Apr 2015 11:53:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 4/2/15 5:40 PM, Pedro Gimeno wrote:
> Bash Version: 4.2
> Patch Level: 37
> Release Status: release
> 
> Description:
>       If a file with a command that ends in \<newline> is sourced, the next
> command issued in the command line does not interpret aliases but
> subsequent ones do. It's a minor issue easy to work around, but since
> it's surprising behaviour and some aliases are important, I thought I'd
> report it. In the real case where I used it, the command was 'rm' which
> was an alias to 'rm -i' to ask for confirmation, and it didn't ask.

Thanks for the report.  This one was kind of tricky to fix, but it will be
fixed in the next release of bash.

Chet

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



reply via email to

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