[plug] word splitting

Ryan ryan at is.as.geeky.as
Wed Nov 17 15:05:19 WST 2004


On Wed, 2004-11-17 at 15:01, gavan at iinet.net.au wrote:
> I have a question with what I know will be an easy answer, but I can't for the 
> life of me find it anywhere:
> How do I disable word-splitting in a bash script?
> Using the following script:

Double quote the filename:

> for img in `ls *.jpg`

for img in ` ls "*.jpg"`

Ryan




More information about the plug mailing list