Re: A funny little mistake

1998-04-27 Thread Alex Romosan
>> > This is the best thing to try first - although I have seen some things >> > that even this won't work on. >> > >> > Chris >> >> Such as what? > >WHOA! > >This is my chnace to present my most stupid mistake: > >[EMAIL PROTECTED]:/tmp# cat /dev/null > -i >[EMAIL PROTECTED]:/tmp# rm -i >rm: too

Re: A funny little mistake

1998-04-27 Thread B. Bell
On 26 Apr 1998, Ben Pfaff wrote: >This works for any filename which the kernel can recognize (that is, >any filename except one with a '/' in it. If you have one of THOSE, >good luck. > > Hint: `debugfs'. (If you do have one with a /.) is there a FAQ which has all these various sol

Re: A funny little mistake

1998-04-26 Thread Ben Pfaff
This works for any filename which the kernel can recognize (that is, any filename except one with a '/' in it. If you have one of THOSE, good luck. Hint: `debugfs'. (If you do have one with a /.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? C

Re: A funny little mistake

1998-04-26 Thread Carl Mummert
int main() { unlink("-i"); } This works for any filename which the kernel can recognize (that is, any filename except one with a '/' in it. If you have one of THOSE, good luck. Carl -- [EMAIL PROTECTED] The sun's not eternal That's why there's the blu

Re: A funny little mistake

1998-04-26 Thread Ben Pfaff
[EMAIL PROTECTED]:/tmp# cat /dev/null > -i [EMAIL PROTECTED]:/tmp# rm -i rm: too few arguments Try `rm --help' for more information. [...] It took me some time to deal with it. There is a trick. I'll leave it as an exercise to the reader. Hint: It is possible with rm. ;) rm -- -i

Re: A funny little mistake

1998-04-26 Thread Marcus Brinkmann
On Sun, Apr 26, 1998 at 11:40:01PM +0200, Marcus Brinkmann wrote: > On Sun, Apr 26, 1998 at 11:44:55PM +0800, The Thought Assassin wrote: > > On Sun, 26 Apr 1998, Chris wrote: > > > On Sun, 26 Apr 1998, The Thought Assassin wrote: > > > > the backslash is the shell's delimiting character, and the s

Re: A funny little mistake

1998-04-26 Thread Marcus Brinkmann
On Sun, Apr 26, 1998 at 11:44:55PM +0800, The Thought Assassin wrote: > On Sun, 26 Apr 1998, Chris wrote: > > On Sun, 26 Apr 1998, The Thought Assassin wrote: > > > the backslash is the shell's delimiting character, and the shell will not > > > try to expand anything directly after a backslash. > >

Re: A funny little mistake

1998-04-26 Thread Chris
On Sun, 26 Apr 1998, The Thought Assassin wrote: > On Sun, 26 Apr 1998, Chris wrote: > > On Sun, 26 Apr 1998, The Thought Assassin wrote: > > > the backslash is the shell's delimiting character, and the shell will not > > > try to expand anything directly after a backslash. > > This is the best

Re: A funny little mistake

1998-04-26 Thread The Thought Assassin
On Sun, 26 Apr 1998, Chris wrote: > On Sun, 26 Apr 1998, The Thought Assassin wrote: > > the backslash is the shell's delimiting character, and the shell will not > > try to expand anything directly after a backslash. > This is the best thing to try first - although I have seen some things > that e

Re: A funny little mistake

1998-04-26 Thread Petra
-BEGIN PGP SIGNED MESSAGE- On Sun, 26 Apr 1998, Thomas J. Malloy wrote: > I was moving a file and intended to type " mv thefile.tar.gz ~/ " so > that it would be moved to my home directory, but by mistake I typed > " mv thefile.tar.gz /~ ". Now I have a 800k file named

Re: A funny little mistake

1998-04-26 Thread Chris
On Sun, 26 Apr 1998, The Thought Assassin wrote: > On Sun, 26 Apr 1998, Thomas J. Malloy wrote: > > " mv thefile.tar.gz /~ ". Now I have a 800k file named ~ on / . I > > tried to "mv ~ normalfilename" and this does create a normal file, but > > the ~ file still exists. If I try to "rm

Re: A funny little mistake

1998-04-26 Thread The Thought Assassin
On Sun, 26 Apr 1998, Thomas J. Malloy wrote: > " mv thefile.tar.gz /~ ". Now I have a 800k file named ~ on / . I > tried to "mv ~ normalfilename" and this does create a normal file, but > the ~ file still exists. If I try to "rm ~ " the system thinks I want > to delete my home director

Re: A funny little mistake

1998-04-26 Thread Shaleh
Most of these silly character files (and we have ALL done it) can be dealt w/ using "./". This causes it to not be looked at. so rm ./~ says look in . and remove the file ~. No expansion performed. I used this technique to test this e-mail. Try `touch ./~`, then `rm ./~`. Works like a champ.