Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: POSIX
- X-seq: zsh-users 7036
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh User ML <zsh-users@xxxxxxxxxx>
- Subject: Re: POSIX
- Date: Sun, 1 Feb 2004 17:15:35 +0000
- In-reply-to: <20040201154425.GD1023@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040201154425.GD1023@xxxxxxxxxxxxxxx>
On Feb 1, 4:44pm, Thorsten Haude wrote:
}
} That would mean that you should not use '.[^.]*' to find hidden files.
} Instead it is stated to use '.[!.]*', which does not work in Zsh:
It does work, if you "unsetopt banghist" -- and having banghist unset is
the default state in NON-interactive shells, so any shell script that
uses the POSIX form would work correctly. The circumflex form is for
backwards compatibility and as a shortcut in interactive shells so that
you don't have to type the extra backslash.
} ('.[\!.]*' works though.)
And that, in fact, would NOT work in a shell script, because the history
mechanism in the interactive line editor is what removes the backslash.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author