bug-bash
[Top][All Lists]
Advanced

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

Re: GLOBIGNORE documentation


From: Isabella Parakiss
Subject: Re: GLOBIGNORE documentation
Date: Mon, 7 Mar 2016 08:58:05 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

On Sun, Mar 06, 2016 at 10:16:58PM +0000, Stephane Chazelas wrote:
> Today, I realised that GLOBIGNORE doesn't work at all like ksh's
> FIGNORE.
> 
> With
> 
> GLOBIGNORE=x*
> 
> we're not filtering out files whose *name* starts with "x" from
> globs but those whose *path* starts with "x".
> 
> In
> 
> echo *
> 
> files whose name starts with "x" will be excluded, but not in
> 
> echo ./*
> 

OTOH this is arguably more useful than its ksh equivalent:
GLOBIGNORE=-*; some-cmd *; some-cmd ./*


---
xoxo iza



reply via email to

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