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

What do backquotes do?



What exactly do backquotes do?  I've seen the uname example in the
manual, but that leaves a number of questions open.

For example, can I only use backquotes for the value?  Or can I also use
it for the name?

| 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

And what about this?

| `echo set` foo=bar

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

tia,
Kai