Jimmy Tang <jt...@tchpc.tcd.ie> writes: > On 25 Oct 2011, at 16:48, Džen wrote: > >> On 25/10/2011 03:56, Evan Gates wrote: >>> Really wish I had an undo send feature... >>> (IFS=:; ls $PATH) >> >> couldn't do better. >> > > just showed this to a friend of mine and he cooked this up > > ls ${PATH//:/ }
That will fail if any folder in $PATH contains spaces. Evan's, however, is not only short, but also correct even under such crazy circumstances. -- \ Troels /\ Henriksen