Jimmy Tang <jtang_AT_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
Received on Wed Oct 26 2011 - 17:37:00 CEST