Bourne shell semicolon quoting problem
Brian Holtz
holtz at strawdog.Eng.Sun.COM
Fri Jun 29 10:37:41 AEST 1990
I'm hacking the rcmd script from the X11R4 distribution to also export
the NeWS NEWSSERVER envariable. The problem: NEWSSERVER has an embedded
semicolon, which makes the shell on the other end of the rsh think
that everthing in the NEWSSERVER string after the semicolon is another
command. I've tried 2 or 3 escape conventions on this, none with any
success. How do I do it?
echo "NEWSSERVER=${string_with_semicolon};export NEWSSERVER;TERM=$TERM;export TERM;DISPLAY=$DISPLAY;export DISPLAY;($*)" '> /dev/null 2>&1 &' | rsh $host /bin/sh &
--
Brian Holtz (holtz at netcord.Eng.Sun.COM)
More information about the Comp.unix.questions
mailing list