Re: Directory name problem...

Tim Smith (tzs@tzs.net)
Sun, 25 Oct 1998 12:13:31 -0800 (PST)


On Sun, 25 Oct 1998, Michael H. Warfield wrote:
> > % Q> #!/bin/sh
> > % Q> XYZZY="`find / -name core`"
> > % Q> for LOOP in `find $XYZZY | sort -ru` ; do
> > % Q> rm -fr $LOOP
> > % Q> done
...
> Oh beautiful! How about this instead... If you know the name
> of the script (say /usr/local/stupid_BOFH_admin/rmcore) then use this
> instead:
>
> mkdir -p "BOFH /usr/local/stupid_BOFH_admin/rmcore /core"

That works.

> Or how about this:
>
> mkdir -p '"BOFH | chmod 666 /etc/passwd" /core'
>
> Or...
>
> mkdir -p '"BOFH ; chmod 666 /etc/passwd" /core'

Those don't (at least on my system--normal Red Hat 5.1 with all the
non-kernel updates applied).

--Tim Smith

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/