[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How the ls command interpret this?
From: |
Reuti |
Subject: |
Re: How the ls command interpret this? |
Date: |
Sun, 30 Jul 2017 22:46:29 +0200 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 03.07.2017 um 20:30 schrieb BaBa:
> Le 2017-07-03 19:17, Eric Blake a écrit :
>> Case 3:
>> $ mkdir foo
>> $ cd foo
>> $ touch a[b] # the glob doesn't match, so it is passed unchanged
>> $ ls ?[b] # the glob doesn't match, so it is passed unchanged
>> ls: cannot access '?[b]': No such file or directory
>> $ cd ..
>> $ rm -rf foo
>
> Yes understood, the glob didn't match.
And if globbing fails, it won't try it without. I mean, it could use ?'[b]' and
try again which would succeed.
$ ls ?'[b]'
a[b]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAll+RaYACgkQo/GbGkBRnRo8CACfTVsYbnmUok1uTuNauBgJSB0f
tiEAmQEymx4yw0B4Nu9GvSvo3DEHJ4Y8
=NGjE
-----END PGP SIGNATURE-----