bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wildcard expansion doesn't handle filenames with spaces


From: Paul Jarc
Subject: Re: Wildcard expansion doesn't handle filenames with spaces
Date: 06 Feb 2001 17:11:52 -0500
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

a.t.hofkamp@tue.nl writes:
>         3) Perform wildcard expansion:
>            for i in *.file
>            do ./argc $i
>            done

Wildcard expansion isn't the issue here.  Word splitting is performed
on parameter values unless you double-quote the parameter.  (See
EXPANSION in the man page.)  So if you want $i to be a single
argument, and if it might contain spaces, use "$i".


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]