Re: Accented chars in filenames issue
On 25/06/11 08:05, David Jardine wrote:
> On Sat, Jun 25, 2011 at 01:34:54AM +1000, Scott Ferguson wrote:
>>
>> [...]
>>
>> I don't think the "no white spaces" and "no accented characters" "rule"
>> is valid in the 21st century. But if some one can put up an
>> authoritative, and recent, reason I'll reconsider.
>>
>
> You won't get anything authoritative from me, but I have noticed traps
> for the unwary, for example:
>
> $ mkdir newdir; cd newdir
> $ touch 'one space' 'and two spaces'
> $ for jim in *; do echo $jim; done
> and two spaces
> one space
>
> So far, so good, but:
>
> $ for jim in `ls`; do echo $jim; done
> and
> two
> spaces
> one
> space
>
> which is not what was intended.
>
> Cheers,
> David
>
>
man bash /IFS ???
Cheers
--
I'm tired of this back-slapping "Isn't humanity neat?" bullsh#t. We're a
virus with shoes, okay? That's all we are.
~ Bill Hicks
Reply to: