Re: [CentOS] Special characters in bash strings

2022-07-11 Thread Young, Gregory
@host “echo ${HOME}; exit” [bob@localhost bob]# /home/bob Greg From: CentOS on behalf of H Date: Wednesday, July 6, 2022 at 21:41 To: Centos Mailing List Subject: [CentOS] Special characters in bash strings [EXTERNAL] This email originated from outside of the organization. Do not click links

Re: [CentOS] Special characters in bash strings

2022-07-07 Thread H
On 07/07/2022 12:52 AM, Jon LaBadie wrote: > On Wed, Jul 06, 2022 at 09:41:14PM -0400, H wrote: >> I have run into a bash variable string problem that I think I have nailed >> down to the variable string containing a tilde (~). Not sure if my >> conclusion is correct and could use some help. >>

Re: [CentOS] Special characters in bash strings

2022-07-07 Thread H
On 07/06/2022 11:27 PM, Chris Schanzle wrote: > Agree with Gordon's other response having specific examples of where it > worked and didn't work would help us help you, but these things can get messy > quickly. > > Since you quoted the tilde path, it is not expanded when assigned to your >

Re: [CentOS] Special characters in bash strings

2022-07-07 Thread H
On 07/06/2022 10:42 PM, Gordon Messmer wrote: > On 7/6/22 18:41, H wrote: >> To my consternation this worked fine in some places but not in others. > > > It might be easier to explain if you had an example of where it worked.  The > bash man page has a section titled "EXPANSION" that details the

Re: [CentOS] Special characters in bash strings

2022-07-06 Thread Jon LaBadie
On Wed, Jul 06, 2022 at 09:41:14PM -0400, H wrote: I have run into a bash variable string problem that I think I have nailed down to the variable string containing a tilde (~). Not sure if my conclusion is correct and could use some help. To make a long(er) story short, an associative array

Re: [CentOS] Special characters in bash strings

2022-07-06 Thread Gordon Messmer
On 7/6/22 18:41, H wrote: To my consternation this worked fine in some places but not in others. It might be easier to explain if you had an example of where it worked.  The bash man page has a section titled "EXPANSION" that details the order in which expansions happen.  Since tilde

[CentOS] Special characters in bash strings

2022-07-06 Thread H
I have run into a bash variable string problem that I think I have nailed down to the variable string containing a tilde (~). Not sure if my conclusion is correct and could use some help. To make a long(er) story short, an associative array variable was created: p[work_path]="~/projects/test/"