search for: myscipt

Displaying 2 results from an estimated 2 matches for "myscipt".

Did you mean: myscript
2018 Sep 28
4
Simple bash question
...I do that I dont get what I'm expecting. if I do MYTEXT='$1' I still dont get what I'm expecting. On the first assignment of MYTEXT I do not want the "$" to be treated as a shell variable. I cannot find out how to do that. I do not have the option of escaping the call to myscipt "\$plusmore". I cannot do that. What am I missing. Jerry
2018 Sep 28
0
Simple bash question
...xpecting. if I do > MYTEXT='$1' > I still dont get what I'm expecting. > > On the first assignment of MYTEXT I do not want the "$" to be treated as a > shell variable. I cannot find out how to do that. > > I do not have the option of escaping the call to myscipt "\$plusmore". I > cannot do that. > > What am I missing. You MUST escape the $ in plusmore. If you don't, the calling shell will try to expand it, and replace it with whatever is in that variable. If it's not defined, you'll get an empty string. All this happens *be...