Re: How to "test" shell script without running it?
- From: "moonhk" <moon_ils-se@xxxxxxxxxxxx>
- Date: 12 Feb 2007 07:20:49 -0800
On Jan 29, 8:04 pm, "oracle DBA" <mansur...@xxxxxxxxx> wrote:
Hi bob,
For the K shell what is option we need to choice just for the systax
checking , is ksh -n script ???,is this way u r testing ....
Regards
Gori Akthar
On Jan 26, 6:05 pm, bobmct <bobm...@xxxxxxxxx> wrote:
Dan Mercer wrote:
Use the -n option:
bash -n script
In vim I have a ksh script called compile tied to F4.
It determines the type of script and calls the appropriate
routine (ksh -n for ksh, perl -c for perl).
It has saved me endless agony over the years.
Dan MercerThanks, Dan;
That's what I was looking for! Funny, thought, I still don't see reference
to it int he bash docs...
But, it does what I was looking for.
Thanks again.
bobmct
Very Good for "test" shell script. Below is my output.
moonhk@hex:/mnt/disk2/ux3/shell$ ksh -n xall.ksh
xall.ksh: warning: line 18: `...` obsolete, use $(...)
xall.ksh: warning: line 19: `...` obsolete, use $(...)
xall.ksh: warning: line 20: `...` obsolete, use $(...)
xall.ksh: warning: line 26: `...` obsolete, use $(...)
xall.ksh: warning: line 30: `...` obsolete, use $(...)
xall.ksh: warning: line 32: `...` obsolete, use $(...)
xall.ksh: warning: line 35: `...` obsolete, use $(...)
xall.ksh: warning: line 40: `...` obsolete, use $(...)
xall.ksh: warning: line 40: `...` obsolete, use $(...)
xall.ksh: warning: line 67: `...` obsolete, use $(...)
moonhk@hex:/mnt/disk2/ux3/shell$
xclient=`ps -ef | grep progres | grep /data | wc -l`
.
- Prev by Date: Re: rm command
- Next by Date: Re: Using UnZip 5.3 to unzip "COBOL alphanumeric and signed numeric format" files
- Previous by thread: Doubling backslashes?
- Next by thread: basic question: other than xset how to turn terminal bell off
- Index(es):
Relevant Pages
|