symlink törlése bash-completionnal

sulaco etc # rm make.profile/
rm: cannot remove `make.profile/': Is a directory
sulaco etc # rm -rf make.profile/
rm: cannot remove directory `make.profile/': Not a directory

:D

(okoskodást megelőzendő: / nélkül törölhető a symlink.)

Hozzászólások

Egybol eszembe jutott a Unix Haters Handbook 30-dik oldala:

Here's a way to amuse and delight your friends (courtesy of Leigh Klotz).
First, in great secret, do the following:


   % mkdir foo
   % touch foo/foo~

Then show your victim the results of these incantations:


   % ls foo*
   foo~
   % rm foo~
   rm: foo~ nonexistent
   % rm foo*
   rm: foo directory
   % ls foo*
   foo~
   %

Persze shelltol fugg, valoszinuleg a mai shellek mast reagalnak ra.
==
`Have some wine,' the March Hare said in an encouraging tone.
Alice looked all round the table, but there was nothing on it but tea.

ez hueseg.. szvsz
mert az: ls foo* - megmutatja mivan a foo konyvtarba
$ mkdir foo
$ touch foo/foo~
$ ls foo*
foo~
$ rm foo~
rm: cannot remove `foo~': No such file or directory -- miert ott van?
$ rm foo*
rm: cannot remove `foo': Is a directory -- ha` mi itt a gond?
$ ls foo*
foo~
$

$ mkdir foo/{asd,asd2} -p
$ ls foo*
asd asd2
$ mkdir foo2/asd{3,4} -p
$ ls foo*
foo:
asd asd2

foo2:
asd3 asd4
$
$ bash --version
GNU bash, version 3.2.9(1)-release (i686-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$

vagy en nem ertem mi a vicc itt vagy hueseg :P