On 26 Oct 2011, at 17:12, Kurt H Maier wrote: > On Wed, Oct 26, 2011 at 11:34 AM, Jimmy Tang <jt...@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 ;) Regards, Jimmy Tang -- Trinity Centre for High Performance Computing, Lloyd Building, Trinity College Dublin, Dublin 2, Ireland. http://www.tchpc.tcd.ie/