luiscolorado <[EMAIL PROTECTED]> wrote:
> This is what I get when some file names have spaces:
>
> for i in `my-program`
> do
> echo $i
> done
>
> It echoes the following:
>
> sony
> apple
> hewlett
> packard
Unquoted `` expansions are split into words using $IFS. So if you
only want to split on
Hello, everybody... I'm suffering a huge problem with the "for" command
because it wants to parse a variable ignoring escape characters.
For example, as you know, if I do something like this in bash:
for i in sony apple "hewlett packard"
do
echo $i
done
It will echo the following:
sony
apple
h
Chet Ramey wrote:
Assuming you're using bash-3.1.x, that could, as Chet suggested, be the
problem; I don't have a 3.1 handy to test.
It is the problem.
I'll take your word for it. You had previously stated that 3.2 fixed
something, but not if "something" was introduced in 3.1, so I wasn't
s
> Assuming you're using bash-3.1.x, that could, as Chet suggested, be the
> problem; I don't have a 3.1 handy to test.
It is the problem.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.case.edu/~chet/
[EMAIL PROTECTED] wrote:
OK, now using Archimerged's cleaner version, I bet Matthew can
reproduce this.
Nope, and you still didn't answer my question, which was "what version
are you using"? I'm going to guess all that is needed to reproduce for
you is 'PS1="\W\$ "'.
Assuming you're using b
> I tried using bashbug on Mac OSX 10.5.2 (Intel), and it doesn't seem
> to be able to read my system info accurately.
>
> It says:
> ___
> Machine: powerpc
> OS: darwin9.0
> Compiler: gcc
> ___
>
> This is an Intel MacBook, not a PowerPC machine. I am unsure if OSX
> can be described as darw
G'day :)
I tried using bashbug on Mac OSX 10.5.2 (Intel), and it doesn't seem
to be able to read my system info accurately.
It says:
___
Machine: powerpc
OS: darwin9.0
Compiler: gcc
___
This is an Intel MacBook, not a PowerPC machine. I am unsure if OSX
can be described as darwin9.0. Yes,
[EMAIL PROTECTED] wrote:
OK, now using Archimerged's cleaner version, I bet Matthew can
reproduce this.
[EMAIL PROTECTED]:/root# su - nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ PROMPT_COMMAND='prompt_status=\ $?'
[EMAIL PROTECTED]:/$ PS1=$SPECIAL_PS1"\A\${prompt_status# 0}
OK, now using Archimerged's cleaner version, I bet Matthew can
reproduce this.
[EMAIL PROTECTED]:/root# su - nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ PROMPT_COMMAND='prompt_status=\ $?'
[EMAIL PROTECTED]:/$ PS1=$SPECIAL_PS1"\A\${prompt_status# 0} \W$ "
17:26 /$ TZ=America/L