[CentOS] Simple bash question
Gary Stainburn
gary at ringways.co.ukFri Sep 28 13:46:42 UTC 2018
- Previous message: [CentOS] Simple bash question
- Next message: [CentOS] Simple bash question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [CentOS] Simple bash question
- Next message: [CentOS] Simple bash question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list