|
Home > Archive > Red Hat Topics > March 2005 > How test a bash script before using it?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How test a bash script before using it?
|
|
| W. Watson 2005-03-22, 5:49 pm |
| Is there an argument to a shell script that will check syntax without executing
the commands?
--
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
"I know that defies the law of gravity, but, you see, I never
studied the law of gravity." -- Bugs Bunny
Web Page: <home.earthlink.net/~mtnviews>
| |
| W. Watson 2005-03-22, 8:45 pm |
| W. Watson wrote:
> Is there an argument to a shell script that will check syntax without
> executing the commands?
bash -n
--
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
"I know that defies the law of gravity, but, you see, I never
studied the law of gravity." -- Bugs Bunny
Web Page: <home.earthlink.net/~mtnviews>
|
|
|
|
|