bug-bash
[Top][All Lists]
Advanced

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

Re: History event execution in command substition


From: Chet Ramey
Subject: Re: History event execution in command substition
Date: Sat, 10 Jan 2015 12:24:25 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 1/9/15 5:58 PM, address@hidden wrote:

> Bash Version: 4.3
> Patch Level: 30
> Release Status: release
> 
> Description:
>       Inside command substition, an exclamation character will always try 
> execute a command from history.  Quoting has an unexpected result.

History expansion is part of readline, and knows next to nothing about
shell syntax.  It knows a little bit about the shell-like quoting that is
common to many Unix applications, but not much else.  There is a minimal
hook function that allows applications to suppress expansions the history
library would ordinarily perform, so maybe it can be extended to understand
these constructs.

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]