[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wildcard (globbing) in directory names
From: |
Eric Blake |
Subject: |
Re: Wildcard (globbing) in directory names |
Date: |
Mon, 18 Dec 2006 22:30:37 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Clough, Neil on 12/18/2006 5:54 PM:
> Hi,
>
> We have a problem using the GNU coreutils "cat" program under Win32.
If you got this program pre-compiled from a particular Windows port, such
as cygwin, you may be better off asking the people that maintain that port
for help.
>
> eg cat <part dir name>*/<part file name>*
>
> And cat would find all files matching to <part file name>* in all
> directories matching to <part dir name>*
>
> This does not seem to happen with GNU coreutils cat !
Actually, cat does not do ANY globbing. Instead, in Unix tradition, cat
defers globbing to the shell. But Windows shell cmd.com is rather
deficient, and does not do any globbing either, so people who port GNU
programs to Unix must provide a glob wrapper that executes prior to main()
when called from cmd. I suspect that whatever version you are using has a
bug in that wrapper. You may want to try the cygwin port instead, as I
just verified that the cygwin version of cat does not have this problem,
whether run from cmd or from a proper shell such as bash.
> This email and any files transmitted with it are
> confidential
That is not a very wise disclaimer to stick on mail to publicly-archived
mailing lists, as it is practically impossible to enforce. If your
employer adds it blindly, then I would suggest looking into a free email
account for use when posting to these sorts of lists.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFh3j884KuGfSFAYARAqRdAJ9hcf5EU2XYELzknRpbpuKGulKpjgCggbqi
te4dUFSaTliamMEISoLXv5Q=
=pvQc
-----END PGP SIGNATURE-----