<<< Date Index >>>     <<< Thread Index >>>

Re: What do backquotes do?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You know, you can *try* all these examples rather than mailing the 
list.

On Sunday, August 12 at 11:13 PM, quoth Kai Grossjohann:
>For example, can I only use backquotes for the value?  Or can I also 
>use it for the name?

Yes and yes.

>| set foo=`echo bar`
>
>This is a somewhat silly way to set the variable foo to the value bar.
>But will the following line do the same?
>
>| set `echo foo`=bar

Yes.

>And what about this?
>
>| `echo set` foo=bar

Yes.

>And what if the shell command prints more than one line?
>
>| `echo foo; echo bar`
>
>Will the above do the same as the following two lines?
>
>| foo
>| bar

No.

~Kyle
- -- 
A lot of the truths we cling to depend greatly on our own point of 
view.
                                                     -- Obi Wan Kenobi
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFGv5egBkIOoMqOI14RAiiZAKDmvp1RphNniuGAwjDoYvfcrNvrIgCg45zQ
pxBn3v2C7x2hT9/Ry9zd0YA=
=yMNi
-----END PGP SIGNATURE-----