Re: unix semantics fuck up

2013-04-15 Thread sven falempin
On Mon, Apr 15, 2013 at 10:44 AM, sven falempin wrote: > *-i*[*extension*] > > -i"\.sed" > > but wow, nice way to destroy file. > > oh , it is tmpfs related :-) > > On Mon, Apr 15, 2013 at 8:12 AM, Marc Espie wrote: > >> $ cat goodfilename >> coincoin >> >> $ perl -pi -e 's/toto/tutu/' goodfile

Re: unix semantics fuck up

2013-04-15 Thread sven falempin
*-i*[*extension*] -i"\.sed" but wow, nice way to destroy file. On Mon, Apr 15, 2013 at 8:12 AM, Marc Espie wrote: > $ cat goodfilename > coincoin > > $ perl -pi -e 's/toto/tutu/' goodfilename > works > > $ cp goodfilename /tmp > $ perl -pi -e 's/toto/tutu/' /tmp/goodfilename > Can't do inplac

unix semantics fuck up

2013-04-15 Thread Marc Espie
$ cat goodfilename coincoin $ perl -pi -e 's/toto/tutu/' goodfilename works $ cp goodfilename /tmp $ perl -pi -e 's/toto/tutu/' /tmp/goodfilename Can't do inplace edit on goodfilename: File exists. $ cat /tmp/goodfilename cat: /tmp/goodfilename: No such file or directory. ktrace shows a disturbi