Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #168773
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | bash help please |
| Date | 2016-06-10 04:50 +0200 |
| Message-ID | <rIkGd-74R-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
this from the command line while attempting to troubleshoot a 110 line
bash script: which asks "if test [${InMail} = "gene"]
then
-----
elif (another name)
yadda yadda
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?
Thanks bashers;
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 04:50 +0200
Re: bash help please Lars Noodén <lars.nooden@gmail.com> - 2016-06-10 05:10 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 06:40 +0200
Re: bash help please David Wright <deblis@lionunicorn.co.uk> - 2016-06-10 06:00 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 07:10 +0200
Re: bash help please David Wright <deblis@lionunicorn.co.uk> - 2016-06-10 07:40 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 08:40 +0200
Re: bash help please David Christensen <dpchrist@holgerdanske.com> - 2016-06-10 06:10 +0200
Re: bash help please Gene Heskett <gheskett@shentel.net> - 2016-06-10 07:10 +0200
Re: bash help please David Christensen <dpchrist@holgerdanske.com> - 2016-06-11 05:50 +0200
Re: bash help please <tomas@tuxteam.de> - 2016-06-10 09:10 +0200
csiph-web