On 1/9/15 5:58 PM, [email protected] 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 [email protected] http://cnswww.cns.cwru.edu/~chet/