On 9/7/13, Zenaan Harkness <z...@freedbms.net> wrote:

> So I thought, run the script in a subshell, executing the result, like:
> $ `ps1`
>
> The following 3-line script is meant to test exactly this:
>
> #!/bin/bash
> PS1=': '
> echo "export PS1=$PS1"

When I change the last line to this:

echo "export PS1=\"${PS1}\""

I get:
bash: export: `"': not a valid identifier

So it appears that my current/parent shell is tokenizing the output of
`...` based on the space.

I guess, why is it tokenizing on space, yet ignoring the quotes?

TIA
Zenaan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caosgnsrwo-culo3m9ipf5vhcevoixxetybx-ya0ujh-+awu...@mail.gmail.com

Reply via email to