Re: [dev] List of tools for a CLI environment

From: Troels Henriksen <athas_AT_sigkill.dk>
Date: Wed, 26 Oct 2011 17:37:00 +0200

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

This archive was generated by hypermail 2.3.0 : Wed Oct 26 2011 - 17:48:03 CEST