[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cat>bad_file<<! warn before precious keystrokes wasted
From: |
Dan Jacobson |
Subject: |
cat>bad_file<<! warn before precious keystrokes wasted |
Date: |
Tue, 18 Feb 2003 08:23:36 +0800 |
there i was typing at my terminal
$ cat>a<<!
> bla bla bla
> bla bla bla
> !
bash: a: cannot overwrite existing file
blaaaast! now he tells me!
why can't you tell me before I start typing?
$ cd /;cat>a<<!
> vvv
> !
bash: a: Permission denied
therefore, warn of noclobber or permission stuff beforehand. however i
bet this is another of 'that's not how the shell works' :-)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cat>bad_file<<! warn before precious keystrokes wasted,
Dan Jacobson <=