cc: [email protected] Subject: Re: Re: [ast-users] How to keep single quotes from confusing ksh -n --------
> Thanks. As I mentioned, I realize that I can manipulate the awk to > make this instance go away. I'm looking for a generalized way to make > the shell happy about itself (e.g., in cases where the embedded > language has no provision for such workarounds). > > What's especially confusing to me is that it would seem like the > syntax checker should be using the same parser as the shell itself > (and the shell obviously deals properly with the single quote). > > I did some more experimentation and the problem only seems to happen > when there are two single-quoted newline-containing strings (that have > no whitespace separation) in the same statement. This leads me even > more into believing that something isn't quite right with the syntax > checking. > > ksh -n tries to do a little more than checking syntax. The single quote check is intended to catch problems in which a ' is missing by assuming that quoted strings don't go over multiple lines. It is especially useful for catching missing quotes when writing scripts. ksh -n produces a number of warnings even when the code is syntactically correct. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
