Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh script syntax correctness checking

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
Hello,

is there any tool to check ksh script syntax correctness without executing the script?


r, m.
 
The usual approach is to execute the script in a 'dry-run' fashion, ie replacing any possibly problematic things in it with harmless ones, but with the same logic behind them.
 
Ken,
sorry, don't know that.
I got it from 'man ksh' in Tru64 (Digital Unix)
regards
 
AFAIK, all ksh version accept this syntax:
ksh -n /path/to/script2check

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top