[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Glob star pattern does not match files beginning with a
From: |
Michael Convey |
Subject: |
Re: [Help-bash] Glob star pattern does not match files beginning with a period |
Date: |
Thu, 16 Jul 2015 17:58:28 -0700 |
On Wed, Jul 15, 2015 at 1:19 PM, Eric Blake <address@hidden> wrote:
>
> Both of these three-glob approaches can be used to obtain all file names
> that are not '.' or '..':
>
> ls -d * .[!.]* ..?*
>
> or:
>
> ls -d * .??* .[!.]
>
> but you still have to deal with the fact that unless nullglob is
> enabled to eliminate a glob that has no matches, you are then passing
> unexpanded globs to ls that may result in listing a valid file name
> twice, or in ls reporting an error about a file not found.
>
I understand an error will result, but I don't understand how passing an
unexpanded glob to ls can ​result in listing a valid filename twice. Please
explain.
Btw, all of the information you have provided is invaluable, thank you.
I've made flashcards to help me remember these concepts.
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, (continued)
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Michael Convey, 2015/07/13
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Evan Gates, 2015/07/13
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Michael Convey, 2015/07/13
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Michael Convey, 2015/07/15
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Greg Wooledge, 2015/07/15
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Eric Blake, 2015/07/15
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Michael Convey, 2015/07/15
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Peter West, 2015/07/16
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Greg Wooledge, 2015/07/16
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Eric Blake, 2015/07/16
- Re: [Help-bash] Glob star pattern does not match files beginning with a period,
Michael Convey <=
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Eric Blake, 2015/07/16
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Greg Wooledge, 2015/07/17
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Stephane Chazelas, 2015/07/21
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Michael Convey, 2015/07/24
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Greg Wooledge, 2015/07/24
- Re: [Help-bash] Glob star pattern does not match files beginning with a period, Matthew Cengia, 2015/07/24
Re: [Help-bash] Glob star pattern does not match files beginning with a period, Dennis Williamson, 2015/07/13