1
I've always thought of backticks in bash as "execute the output of 'some_command'
." What is happening in the following... consider a script myscript.pl
that prints the following text:
export PS1="[STRING] $PS1"
If I copy the output from cat file.txt
to the command line and execute, "[STRING] " gets added to the front of my prompt.
On the other hand, backtick-ing 'myscript.pl'
makes my prompt "[STRING]
. What is happening?
Sorry about the formatting - I couldn't get backticks to show up in a code block. – Andrew Wood – 2011-01-27T18:51:47.660