[TriLUG] Limit to command line arguments?

Randall Barlow rpbarlow at eos.ncsu.edu
Sat Oct 22 14:46:55 EDT 2005


Ian Kilgore wrote:

> Yup, but <progname> has to interpret the glob character, not the shell.
> ~ If you pass '*.CAD' to a program in bash, bash expands the '*.CAD' to
> '1.CAD 2.CAD 3.CAD ... N.CAD'.  If the resulting string is bigger than
> the number of arguments a program can take, you're still toast.

Wow, that's cool.  I didn't realize that bash did that, but I tried it 
with my program and it worked.  Now if ls can take *.CAD with ~350 
files, does that mean that my program should be able to also?

Randy



More information about the TriLUG mailing list