On Thu, Jul 04, 2002 at 12:34:24PM +1000, Peter Hardy wrote:
Woo! Are we awarding a prize for most creative way to lose data? ;-)
Running rm with - as an argument in order to find out oh so painfully
what someone else just did wrong is good.
But surely there's someone who has posted one of
Mary wrote:
Running rm with - as an argument in order to find out oh so painfully
what someone else just did wrong is good.
$ rm -
rm: cannot remove `-': No such file or directory
$ echo -
-
$ cd -
[changes directory to $OLDPWD]
$ man bash
for further explanation of what the argument '-'
quote who=Mary
[1] WARNING: these commands will delete your entire hard drive, up until
the point where rm gets so confused about no longer existing that it has
an existential crisis. And your printer will probably not work then
either. Anyone executing these commands on the strength of this
On Thu, Jul 04, 2002 at 12:52:56PM +1000, Rick Welykochy wrote:
Mary wrote:
Running rm with - as an argument in order to find out oh so painfully
what someone else just did wrong is good.
$ rm -
rm: cannot remove `-': No such file or directory
Reminds me of the time when somehow I
Colin Humphreys wrote:
I remember having to write a little perl proggie to remove the -R file, as
rm just wasn't going to have a bar of it.
Well, not one bar anyway :). This would have worked:
rm -- -R
Matthew
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info:
On Thu, Jul 04, 2002 at 02:18:10PM +1000, Colin Humphreys wrote:
I remember having to write a little perl proggie to remove the -R file, as
rm just wasn't going to have a bar of it.
Try rm -- -R.
-Andrew.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info:
::I remember having to write a little perl proggie to remove
::the -R file, as
::rm just wasn't going to have a bar of it.
::
::-Colin
::
One could try this:
rm ./-R
A thought.
Regards,
Rajnish
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: