🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.folklore.computers
2 messages
2 total messages Started by mon... Steve Monson Sun, 02 Sep 1990 13:10
Re: Delete All Your Files
#4321
Author: mon... Steve Monson
Date: Sun, 02 Sep 1990 13:10
22 lines
1433 bytes
In article <FagVo...@zl2tnm.gp.govt.nz> d...@zl2tnm.gp.govt.nz (Don Stokes) writes:
>I love the way AmigaDOS lets you wipe out all your work with a single
>misplaced space.  Consider:
>
>        delete #?.o
>vs
>        delete #? .o

Ah yessss... There are many places where syntactic near-misses are still valid
commands. Like the time I wanted to copy a couple of files from a friend's
directory to mine. Using C-Shell, my command was intended to be

	     cp friend/{a,b} .

but my finger slipped and missed the "." so what I actually typed was
expanded to

	     cp friend/a friend/b

and my friend's "b" file was replaced by his "a" file. Luckily, it wasn't too
hard to reconstruct "b", but it did encourage him to reset his umask to 002
so others couldn't write to his files.
Re: Delete All Your Files
#4322
Author: pow... David Powers AG Siekmann
Date: Mon, 03 Sep 1990 12:22
39 lines
1828 bytes
mon...@diablo.amd.com (Steve Monson) writes:

>In article <FagVo...@zl2tnm.gp.govt.nz> d...@zl2tnm.gp.govt.nz (Don Stokes) writes:
>>I love the way AmigaDOS lets you wipe out all your work with a single
>>misplaced space.  Consider:
>>
>>        delete #?.o
>>vs
>>        delete #? .o

>Ah yessss... There are many places where syntactic near-misses are still valid
>commands. Like the time I wanted to copy a couple of files from a friend's
>directory to mine. Using C-Shell, my command was intended to be

>	     cp friend/{a,b} .

>but my finger slipped and missed the "." so what I actually typed was
>expanded to

>	     cp friend/a friend/b

>and my friend's "b" file was replaced by his "a" file. Luckily, it wasn't too
>hard to reconstruct "b", but it did encourage him to reset his umask to 002
>so others couldn't write to his files.

My "favourite" in this line is in vi (or other unix editor):

:!rm tmp
:!ll *.c

If when typing the above sequence you see the following message:

	tmpll: not found

you know you have just wiped out your source.  I am so used to
repeating commands with !! that I sometimes double the !
accidentally.  (ll is an alias or shell script for ls -l.)

David Powers
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads