Bjartur Thorlacius <svartman95_AT_gmail.com> writes:
> On 10/27/11, Jimmy Tang <jtang_AT_tchpc.tcd.ie> wrote:
>>
>> On 26 Oct 2011, at 17:12, Kurt H Maier wrote:
>>
>>> On Wed, Oct 26, 2011 at 11:34 AM, Jimmy Tang <jtang_AT_tchpc.tcd.ie> wrote:
>>>> just showed this to a friend of mine and he cooked this up
>>>>
>>>> ls ${PATH//:/ }
>>>
>>> shit only works in bash
>>>
>>
>> oddly it worked in mksh which is the main shell that i tend to use. but yea,
>> it is a bit of a bashism type thing there. in relation to spaces in a
>> directory name, well that just sucks doesn't it ;)
>>
> Directory names are a sequence of arbitrary nonzero bytes. Parsing a
> concatenation of arbitrary strings sucks. Directories can only be
> separated by zero bytes.
Well, in a PATH variable, they're always separated by colons.
--
\ Troels
/\ Henriksen
Received on Thu Oct 27 2011 - 12:38:03 CEST