Re: [CentOS] Simple bash question

2018-09-28 Thread Fred Smith
On Fri, Sep 28, 2018 at 09:39:29AM -0400, Jerry Geis wrote: > I am calling a bash script and passing in somestring that includes a "$" > > myscript "$plusmore" myscript '$plusmore' should work. note the single quotes. If you can't use single quotes, I don't know how to use it,, but there is

Re: [CentOS] Simple bash question

2018-09-28 Thread Leroy Tennison
he message. From: CentOS on behalf of Anand Buddhdev Sent: Friday, September 28, 2018 8:51 AM To: CentOS mailing list; Jerry Geis Subject: [EXTERNAL] Re: [CentOS] Simple bash question On 28/09/2018 15:39, Jerry Geis wrote: > I am calling a bash script and passing in somestring th

Re: [CentOS] Simple bash question

2018-09-28 Thread Anand Buddhdev
On 28/09/2018 15:39, 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" > > when I do that I dont get what I'm expecting. if I do > MYTEXT='$1' >

Re: [CentOS] Simple bash question

2018-09-28 Thread Gary Stainburn
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 s

[CentOS] Simple bash question

2018-09-28 Thread Jerry Geis
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" when 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 assignmen