* Help with 'setld' subset control programs?
@ 2000-05-08 4:00 Keith Benoit
2000-05-09 4:00 ` Steven Winikoff
0 siblings, 1 reply; 3+ messages in thread
From: Keith Benoit @ 2000-05-08 4:00 UTC (permalink / raw)
Hello, all...
I'm trying to develop and debug a subset control program for use with
the Tru64 'setld' installation utility. The problem is, the large
"case" statement within the SCP doesn't get handled correctly. The
actual text of the error when installing the subset is:
"/var/tmp/stltmp23623/STMAPI620.scp: syntax error at line 393: `end of
file' unexpected"
By using "set -x" and "set -v" commands within the SCP, I can see that
setld is actually reading until the very end of the SCP file, even past
the ";;" and "esac" lines. I suppose there is a syntax error or script
formatting error somewhere, but the shell isn't too forgiving or
helpful.
Are there any special handling or formatting considerations of which I
should be aware? I've reviewed several of the Tru64 system SCP scripts,
but haven't spotted any glaring errors, by comparison. OTOH, I've seen
extra blank lines and ";;" lines at the bottom of some system scripts.
Thanks in advance for any assistance,
Keith Benoit
Charlotte, NC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with 'setld' subset control programs?
2000-05-08 4:00 Help with 'setld' subset control programs? Keith Benoit
@ 2000-05-09 4:00 ` Steven Winikoff
2000-05-09 4:00 ` Keith Benoit
0 siblings, 1 reply; 3+ messages in thread
From: Steven Winikoff @ 2000-05-09 4:00 UTC (permalink / raw)
In <39174325.9DC0E581@carolina.rr.com> Keith Benoit <keith721@carolina.rr.com> writes:
>"/var/tmp/stltmp23623/STMAPI620.scp: syntax error at line 393: `end of
>file' unexpected"
This is typically what happens when a shell script contains a construct
that is opened but not closed (eg, a missing quotation mark, an if
statement without a matching "fi", a for loop or while loop without a
matching "done", etc.).
That doesn't mean it will be easy to find, but that's what I'd suggest
looking for.
- Steven
________________________________________________________________________
Steven Winikoff |
Concordia University |
Montreal, QC, Canada | There's an exception to every rule,
smw@alcor.concordia.ca | except this one.
http://alcor.concordia.ca/~smw |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with 'setld' subset control programs?
2000-05-09 4:00 ` Steven Winikoff
@ 2000-05-09 4:00 ` Keith Benoit
0 siblings, 0 replies; 3+ messages in thread
From: Keith Benoit @ 2000-05-09 4:00 UTC (permalink / raw)
Steven,
Thanks for your suggestion. I had already carefully (no, really! :-)
inspected my script for mismatched quotes, if/fi do/done case/esac
pairs, missing syntax, etc. My request for help was to see if anyone
knew of problems peculiar (and most likely undocumented) to the 'setld'
installation utility.
As it turns out, the problem was solved when I cut out each section of
the case statement to a separate file, and then copied/pasted the parts
back into the main script. Apparently, there was an escape sequence or
control character embedded in the body of the script, somewhere. It's
running fine, now.
Thanks again,
Keith
Steven Winikoff wrote:
>
> In <39174325.9DC0E581@carolina.rr.com> Keith Benoit writes:
>
> >"/var/tmp/stltmp23623/STMAPI620.scp: syntax error at line 393:
> >'end of file' unexpected"
>
> This is typically what happens when a shell script contains a construct
> that is opened but not closed (eg, a missing quotation mark, an if
> statement without a matching "fi", a for loop or while loop without a
> matching "done", etc.).
>
> That doesn't mean it will be easy to find, but that's what I'd suggest
> looking for.
>
> - Steven
> ________________________________________________________________________
> Steven Winikoff |
> Concordia University |
> Montreal, QC, Canada | There's an exception to every rule,
> smw@alcor.concordia.ca | except this one.
> http://alcor.concordia.ca/~smw |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-09 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-08 4:00 Help with 'setld' subset control programs? Keith Benoit
2000-05-09 4:00 ` Steven Winikoff
2000-05-09 4:00 ` Keith Benoit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox