Re: GLOBIGNORE documentation

2016-03-07 Thread Stephane Chazelas
2016-03-07 08:58:05 +0100, Isabella Parakiss:
[...]
> OTOH this is arguably more useful than its ksh equivalent:
> GLOBIGNORE=-*; some-cmd *; some-cmd ./*
[...]

True, that's probably the one case where the GLOBIGNORE
behaviour is actually useful.

Note that with ksh93, you've got to write it:

FIGNORE='@(.|..|-*)'

That is, you need to exclude "." and ".." manually.

-- 
Stephane



Re: [Help-bash] help

2016-03-07 Thread Charles Daffern
On 07/03/16 03:44, Val Krem wrote:
> Hi John and all,
>
> I created several files *.txt and when I execute the this command, 
>
>
> autil +10  *txt
>
>
> It is listing the first file only!!!
>
Your function only deals with 2 arguments, but you are passing it
several arguments, not just 2. Bash will expand *txt to all files ending
in txt, resulting in many more arguments than you intended. To avoid
this, you should quote it:

autil +10 '*txt'



signature.asc
Description: OpenPGP digital signature