Re: Simple bash question

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



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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux