Can't post the image directly yet, so here's a link to it: https://i.sstatic.net/Zl277.png

I'm trying to learn some basic unix file scripting for an Informatica project I'm working on. I've used a few scripts in the past and have only a very rudimentary idea of what to do so I'm just playing around with the various parts of an existing script.

I can't make heads or tails of some of the behavior of the commands. Here is an example using ECHO. The thing appears to just randomly return one of: the variable I defined, the variable name, or an error.

e.g. why does:

$ _Src="/home/axxxxxx"
$ echo "${_Src}"




$ INFA_HOME="/home"
$ echo "${INFA_HOME}"


ksh: "${INFA_HOME_^H}": bad substitution

other inscrutable behavior:

$ echo "${INFA_HOME} now"
$ echo "${INFA_HOME} now"
/home now
$ echo "${INFA_HOME} "
$ echo "${INFA_HOME} now"
/home now

1 Answer 1


Likely because the script actually contains echo "${INFA_HOME_backspace}"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .