Re: [CentOS] bash off topic

2019-05-17 Thread Sean
S mailing list > Cc: > Bcc: > Date: Thu, 16 May 2019 12:57:43 -0400 > Subject: [CentOS] bash off topic > I have a simple bash script it will take arguments from a file that has > quotes. > > my file arg.txt would be this > -lt "*.txt" > > my script file woul

Re: [CentOS] bash off topic

2019-05-16 Thread Pete Biggs
On Thu, 2019-05-16 at 12:57 -0400, Jerry Geis wrote: > I have a simple bash script it will take arguments from a file that has > quotes. > > my file arg.txt would be this > -lt "*.txt" > > my script file would be > LS_ARG=`cat arg.txt` > ls $LS_ARG > > it does not run properly: > sh -x

Re: [CentOS] bash off topic

2019-05-16 Thread Paul Heinlein
On Thu, 16 May 2019, Jerry Geis wrote: I have a simple bash script it will take arguments from a file that has quotes. my file arg.txt would be this -lt "*.txt" my script file would be LS_ARG=`cat arg.txt` ls $LS_ARG it does not run properly: sh -x ./arg.sh ++ cat arg.txt + LS_ARG='-lt

[CentOS] bash off topic

2019-05-16 Thread Jerry Geis
I have a simple bash script it will take arguments from a file that has quotes. my file arg.txt would be this -lt "*.txt" my script file would be LS_ARG=`cat arg.txt` ls $LS_ARG it does not run properly: sh -x ./arg.sh ++ cat arg.txt + LS_ARG='-lt "*.txt"' + ls -lt '"*.txt"' ls: cannot access