shelling out? - uname

Chisel Wright chisel at herlpacker.co.uk
Fri Dec 8 15:48:44 GMT 2006


On Fri, Dec 08, 2006 at 07:35:32AM -0800, Stray Taoist wrote:
> perl -MPOSIX -e '*POSIX::uname = sub { "vi" }; print POSIX::uname'

Which won't do what you think after root does:

  rm -f `which perl`

*shrug*

-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

  Sorry isn't an excuse when you do something stupid on purpose.


More information about the london.pm mailing list