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:14:32 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bob Proulx <bob <at> proulx.com> writes:
> I assume that 'ls' isn't what you actually are doing, that you have
> reduced the test case to something smaller (thank you for that!)
> because the shell can list the directory itself.
>

Yup, doing 'ls' wasn't what I needed: it was just the first
nonsense/nontrivial example it came to my mind. I was just wondering if
there were a syntax  for manipulating expanded strings instead of
variables, because at first saw it seemed something lacking: I usually
don't like to have temporary variables just for a  single manipulation,
whatever is the language. Anyway, I figured that using the 'for'
construct for my task is more compact and safe almost as well as doing 
without. Thanks a lot for the hint.

Greetings,
Francesco





reply via email to

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