[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: [Help-bash] help
From: Charles Daffern <seejay.11 () gmail ! com>
Date: 2016-03-08 1:01:40
Message-ID: 56DE2474.4010307 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
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,=20
>
>
> 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" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic