On Fri, Nov 08, 2002 at 12:19:03PM +1300, Volker Kuhlmann wrote:
> DIR="/ hahahaaa..."
> [ "${DIR}" != '/' ] && rm -rf ${DIR}
> and haste la viste baby.
Presumably if you're going to the effort of testing ${DIR} to assert it
is not '/', then you would also quote ${DIR} correctly for the 'rm'
invocation.
> Why is it that, generally speaking, on unix everything stops working as
> soon as a name contains a space? Most shell scripts are rubbish just
> for this reason.
Writing scripts is easy. Writing correct scripts, however, is not.
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]