Date: Sat, 10 Aug 2002 12:42:25 -0400 From: parv <parv_fm@emailgroups.net> To: rene@xs4all.nl Cc: questions@freebsd.org Subject: Re: /bin/sh "for" giving filenames with space as multiple parts :-(( Message-ID: <20020810164225.GA6545@moo.holy.cow> In-Reply-To: <20020810141627.GE76272@xs4all.nl> References: <20020810141627.GE76272@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
in message <20020810141627.GE76272@xs4all.nl>, wrote rene@xs4all.nl thusly... > > if [ -d $x ] use double quotes... if [ -d "$x" ] > if [ `ls $y | wc -w` == 0 ] if [ $( ls "$y" | wc -w ) == 0 ] ...or as you hinted yourself, play w/ IFS. -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020810164225.GA6545>