[1687] 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 (bilker@bigfoot.com)
Tue Oct 29 17:28:31 1996

Date: Tue, 29 Oct 1996 14:26:08 -0800
To: redhat-list@redhat.com
In-reply-to: <Pine.LNX.3.95.961029111239.499A-100000@getontheb.us> (message
	from /home/david on Tue, 29 Oct 1996 11:20:44 -0800 (PST))
From: bilker@bigfoot.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


> 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).

Bill Kerr


--
  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