bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strings manipulation without using variables


From: Francesco Pretto
Subject: Re: Strings manipulation without using variables
Date: Thu, 1 Apr 2010 08:20:34 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Greg Wooledge <wooledg <at> eeg.ccf.org> writes:
> Just in case, it needs to be pointed out that using ls in this way is
> NOT a safe operation, since filenames may contain newlines (or other
> characters that ls may choose to represent with a ? instead of leaving
> intact, depending on the implementation).  Newlines will completely
> break any line-based approach, and characters that are munged into ?
> will break anything that relies on the output of ls for that filename.
> 

'ls' wasn't my task (I was more interested in syntax dissertation) but
thanks for safeness and performance hints, they are always precious.

Greetings,
Francesco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]