[CentOS] Simple bash question
Gary Stainburn
gary at ringways.co.uk
Fri Sep 28 13:46:42 UTC 2018
On Friday 28 September 2018 14:39:29 Jerry Geis wrote:
> I am calling a bash script and passing in somestring that includes a "$"
>
> myscript "$plusmore"
>
> I want to assign in the myscript the $1 arg to something like
> MYTEXT="$1"
>
Hi Jerry,
The problem is that bu the time you're in your script it's already too late.
myscript "$plusmore"
basically says take the contents of the environment plusmore and pass that to
the script.
if you call
myscript '$plusmore'
you will get what you want.
More information about the CentOS
mailing list