[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Globbing omits file that should be included
From: |
Terry Jones |
Subject: |
Globbing omits file that should be included |
Date: |
Thu, 23 Aug 2007 17:47:44 +0200 |
Hi. I just ran into a globbing problem that doesn't at first sight seem to
be caused by my environment. Details below.
Terry
---
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: darwin8.5.1
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='darwin8.5.1' -DCONF_MACHTYPE='i386-apple-darwin8.5.1'
-DCONF_VENDOR='apple' -DSHELL -DHAVE_CONFIG_H -DMACOSX -I. -I/sw/lib/include
-I. -I./include -I./lib -I/sw/include -no-cpp-precomp
uname output: Darwin terry-jones-computer.local 8.10.1 Darwin Kernel Version
8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
Machine Type: i386-apple-darwin8.5.1
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
I have a mail directory with 6629 files in it. There is a file in the
directory called OUT:
~/mail $ ls -la OUT
-rw-rw-r-- 1 terry terry 52088059 Aug 23 17:17 OUT
There are also a bunch of other files, with names in the form
OUT-YYYYMMDD-YYYYMMDD:
~/mail $ ls OUT*
OUT-19890919-19900313 OUT-19941030-19950522 OUT-19981217-19990529
OUT-20030113-20030326 OUT-20060606-20061125
OUT-19900314-19901018 OUT-19950523-19951128 OUT-19990530-19990926
OUT-20030327-20030602 OUT.misc01
OUT-19901019-19910307 OUT-19951129-19960618 OUT-19990927-20000305
OUT-20030603-20031001 OUT.misc02
OUT-19910308-19910827 OUT-19960619-19970203 OUT-20000306-20000630
OUT-20031002-20040509 OUT.misc03.asc
OUT-19910828-19911129 OUT-19970204-19970531 OUT-20000701-20001120
OUT-20040510-20041122 OUT.misc04
OUT-19911130-19920517 OUT-19970601-19970817 OUT-20001121-20010504
OUT-20041123-20050213 OUT.misc05
OUT-19920518-19921209 OUT-19970818-19980226 OUT-20010505-20011002
OUT-20050214-20050713
OUT-19921210-19930727 OUT-19980227-19980721 OUT-20011003-20020319
OUT-20050714-20051101
OUT-19930728-19940321 OUT-19980722-19981026 OUT-20020320-20020817
OUT-20051102-20060129
OUT-19940322-19941029 OUT-19981027-19981216 OUT-20020818-20030112
OUT-20060130-20060605
Notice how the OUT file is not included in the expansion of OUT* ???
I don't have any globbing vars set to do anything weird.
As a test, when I make a new empty directory and touch the above file names
(plus OUT), the OUT file _is_ matched by OUT*. I don't think any of the
file names are affecting ls, as ls -- OUT* also misses the OUT file in the
original dir, as does echo OUT* But, echo OUT* matches OUT in the test
directory.
So it looks like the failure to match OUT in my original directory has
something to do with the directory itself.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Globbing omits file that should be included,
Terry Jones <=