Re: bash help please

2016-06-10 Thread David Christensen
On 06/09/2016 10:04 PM, Gene Heskett wrote: > And I just amrecover'd a week old version that is working fairly well On 06/09/2016 10:06 PM, Gene Heskett wrote: On Friday 10 June 2016 00:00:12 David Christensen wrote: If that doesn't help, post a complete script that demonstrates the problem.

Re: bash help please

2016-06-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jun 09, 2016 at 10:41:27PM -0400, Gene Heskett wrote: > Greetings; > > A bash script that has worked most of a decade now refuses. > > For instance, assume that var InMail is = "gene", and can be echoed from > the command line using

Re: bash help please

2016-06-10 Thread Gene Heskett
On Friday 10 June 2016 01:34:14 David Wright wrote: > On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote: > > On Thursday 09 June 2016 23:50:35 David Wright wrote: > > > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > > > A bash script that has worked most of a decade now

Re: bash help please

2016-06-09 Thread David Wright
On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote: > On Thursday 09 June 2016 23:50:35 David Wright wrote: > > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > > A bash script that has worked most of a decade now refuses. > > > > > > For instance, assume that var InMail is

Re: bash help please

2016-06-09 Thread Gene Heskett
On Friday 10 June 2016 00:00:12 David Christensen wrote: > On 06/09/2016 07:41 PM, Gene Heskett wrote: > > A bash script that has worked most of a decade now refuses. > > > > For instance, assume that var InMail is = "gene", and can be echoed > > from the command line using $InMail like this. > >

Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:50:35 David Wright wrote: > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > > A bash script that has worked most of a decade now refuses. > > > > For instance, assume that var InMail is = "gene", and can be echoed > > from the command line using $InMail

Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:08:32 Lars Noodén wrote: > On 06/10/2016 05:41 AM, Gene Heskett wrote: > > gene@coyote:~$ echo `test [${InMail} = "gene"]` > > > > All I get is the linefeed. Obviously I'm losing it, so how do I > > translate and get usefull output for troubleshooting? > > One option

Re: bash help please

2016-06-09 Thread David Christensen
On 06/09/2016 07:41 PM, Gene Heskett wrote: A bash script that has worked most of a decade now refuses. For instance, assume that var InMail is = "gene", and can be echoed from the command line using $InMail like this. gene@coyote:~$ echo $InMail gene But I'll be switched if I can get a result

Re: bash help please

2016-06-09 Thread David Wright
On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote: > A bash script that has worked most of a decade now refuses. > > For instance, assume that var InMail is = "gene", and can be echoed from > the command line using $InMail like this. > gene@coyote:~$ echo $InMail > gene > But I'll be

Re: bash help please

2016-06-09 Thread Lars Noodén
On 06/10/2016 05:41 AM, Gene Heskett wrote: > gene@coyote:~$ echo `test [${InMail} = "gene"]` > > All I get is the linefeed. Obviously I'm losing it, so how do I > translate and get usefull output for troubleshooting? One option is to use 'set -x' there in the script. It can go anywhere above

bash help please

2016-06-09 Thread Gene Heskett
Greetings; A bash script that has worked most of a decade now refuses. For instance, assume that var InMail is = "gene", and can be echoed from the command line using $InMail like this. gene@coyote:~$ echo $InMail gene But I'll be switched if I can get a result from a line of code resembling