This is the mail archive of the
mailing list for the Cygwin project.
Shell meta character expansion problems
- From: Ashok Vadekar <avadekar at certicom dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 3 Dec 2001 13:27:51 -0500
- Subject: Shell meta character expansion problems
- Reply-to: avadekar at certicom dot com
I recently updated my visual C installation, and for paranoia reasons I
maintained the original install (neither uses the registry, they are just
directory trees for command-line use). I happened to put the new tree
a little "deeper" that the original install, and noticed that I can't grep through the header files with an absolute path. The following fails:
grep your_symbol_here /d/sdks/vc5sp5/vc98/includes/*
grep your_symbol_here /d/sdks/vc5sp5/vc98/includes/*.h works.
Also, this fails
I figured out that
worked (from the obvious, appropriate cwd's).
The source to grep turned up nothing, but then I looked at the shell (bash).
It appears that expandmeta() in expand.c (line 1124) has a lower limit for
expanded output of 16K, otherwise a size computed from PATH_MAX. I can't
really tell if the failure I have is due to this computed size, since the
allocated buffer gets passed into expmeta() as an un-sized char *.
However, based on what I see at the command line, it certainly seems that
the wildcard expansion is running out of memory.
Is there anyone familiar enough with this to shove me in the right direction?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html