[CentOS] bash script fails conditional test
Stephen Harris
lists at spuddy.orgMon Apr 20 01:53:55 UTC 2015
- Previous message: [CentOS] bash script fails conditional test
- Next message: [CentOS] bash script fails conditional test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Apr 19, 2015 at 09:40:29PM -0400, Tim Dunphy wrote: > Good tip! But I ran the script with sh +x . I guess that running it with sh You should use "bash -x" ("bash" and not "sh" because sh may not be bash everywhere; eg Ubuntu; "-x" and not "+x" because "-x" means "turn on debug" but "+x" means "turn _off_ debug") -- rgds Stephen
- Previous message: [CentOS] bash script fails conditional test
- Next message: [CentOS] bash script fails conditional test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list