[1712] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: 4.0 upgrade: tkman broken / pppd "upgrade" / gpm uninstall

daemon@ATHENA.MIT.EDU (Mike Sangrey)
Tue Oct 29 19:42:25 1996

To: redhat-list@redhat.com
In-reply-to: Your message of "Tue, 29 Oct 1996 14:26:08 PST."
             <199610292226.OAA31882@max1-39.spiritone.com> 
Date: Tue, 29 Oct 1996 18:43:35 -0500
From: Mike Sangrey <mike@sojurn.lns.pa.us>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Bill Kerr wrote:
> 
> > when i try and run tkman i get the follwoing error: 
> > [root@getontheb bin]# tkman 
> > can't read "0": no such variable
> >     while executing
> > "exec /usr/bin/wish $0..."
> >     (file "/usr/bin/tkman" line 4)
> > 
> > I tried taking out the $0 and also running tkman on a man page "tkman
> > bash" but neither worked. Does anyone have a fix for this?
> 
> I had the same problem with tkman under 4.0.  I ended up changing the
> first few lines of /usr/bin/tkman as follows:
> 
> ----- original -------------
> #! /bin/csh -f
> # the next line restarts using wish \\
> exec /usr/bin/wish $0 $*
> set manx(version) 1.7.3
> 
> ----- replaced with -------------
> #! /usr/bin/wish
> set manx(version) 1.7.3
> set manx(newuser) ""
> 
> ---------------------------
> As you can see, the original is a csh script in which csh executes only
> one line, exec'ing /usr/bin/wish on the same file.  The new version of
> wish (apparently) tries to execute the 'exec' line as well, and chokes.
> My replacement eliminates the csh middleman, and seems to work (at least
> with no command line args, which I haven't tested).
> 

FYI: the line
> # the next line restarts using wish \\
> exec /usr/bin/wish $0 $*

is suppose to work.  See "Practical Programming in Tcl and Tk", by Brent B. 
Welch, page 12.

This is either a bug in wish or there is a space after those "\\" characters.  
Can someone check?
-- 
  Mike Sangrey	<mike@sojurn.lns.pa.us>	(Home)
		<Mike.Sangrey@specmarkmet.com>(Work)
	"I've trademarked `William Della Croce, Jr.(tm)'.
		  Anyone using this name owes me $1,000,000."



--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post