[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash Question



Am 06. Jul, 2017 schwätzte Jonathan Marquardt so:

On Wed, Jul 05, 2017 at 09:53:15PM +0000, der.hans wrote:
When running the command, your current shell evaluates the variable and
replaces it with the variable's value before starting the echo command.
When echo is run the command has already turned into "echo /bin/bash" or
whatever your shell is, then echo produces "/bin/bash" as the output.

Yes, I thnk that OP's problem is that there is no output, probably because the
variable is not declared or empty.

Javier's response hints at the mystery.

The plain text version of the email stopped after the "echo $SHELL" line,
but there are a couple if statements and a question in the html version.

ciao,

der.hans
--
#  https://www.LuftHans.com/        https://www.PhxLinux.org/
#  "So the environment is not a luxury ... It is an economically important
#  insurance policy whose wisdom we ignore at our peril."
#  -- Klaus Toepfer, U.N. environment agency Executive Director

Reply to: