[PLUG] sd save directory alias
Eric Wilhelm
scratchcomputing at gmail.com
Fri Jul 13 08:47:04 UTC 2007
# from Keith Lofstrom
# on Thursday 12 July 2007 10:33 pm:
>alias ds='cd `cat ~/.sd`'
...
>This is somewhat insecure; if anyone manages to write some
>executable stuff into ~/.sd, then 'ds' will execute it.
You must have requested the shell with the extra non-security features
or something. AFAICT, anything that comes out of $(cat file) is going
to be a literal unless you go out of your way to eval it. Got an
example?
>I use 'sd' and 'ds' because I am left handed; 'kl' and 'lk'
>might be easier for right handers, and I will humbly accept
>the honor of being immortalized in the initials. ;-)
What if you're dvorak-handed? Iry Prry?
--Eric
--
software: a hypothetical exercise which happens to compile.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------
More information about the PLUG
mailing list