[Top][All Lists]

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

Re: Unexpected history expansion

From: Chet Ramey
Subject: Re: Unexpected history expansion
Date: Thu, 9 Jan 2003 10:14:32 -0500

> Machine Type: i686-pc-linux-gnu
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> Description:
>   The info page describing the event designators used by the bash
>   history expansion mechanism say that an exclaimation point will:
>       "Start a history substitution, except when followed by a space,
>        tab, the end of the line, `=' or `('."
>   However, bash tries to perform a history expansion even when the
>   exclaimation point is followed by an opening parenthesis.

Since the `!(pattern)' sequence is only special when the `extglob' shell
option is enabled, the shell doesn't inhibit history expansion in this
case unless it's enabled.

I will add a note to that effect to the documentation.


``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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