Shell PATH not being reread

2007-04-12 Thread Sean Murphy

I have just installed FreeBSD 6.2 Release.  I su to root and run

pkg_add -r cvsup-without-gui

It installed fine

I edited the ports-supfile
cd /usr/share/examples/cvsup
vi ports-supfile

but when I go to run

cvsup -g -L 2 ports-supfile

It tells me it cannot find the command

I logout completely then login again and su and I can now run the same 
command from the /usr/share/examples/cvsup directory.


It seems the path is not being rebuilt or reread when I added that 
package but when I logout and login it works.  I know I can type in the 
the full path and command but was wondering if there was a solution to 
reload/rebuild/reread the path so I don't have to login/logout/login


env for myself is
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/smurphy/bin
SHELL=/bin/sh

env for root is
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
SHELL=/bin/csh


Thanks.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell PATH not being reread

2007-04-12 Thread Kevin Kinsey

Sean Murphy wrote:

I have just installed FreeBSD 6.2 Release.  I su to root and run

pkg_add -r cvsup-without-gui

It installed fine

I edited the ports-supfile
cd /usr/share/examples/cvsup
vi ports-supfile

but when I go to run

cvsup -g -L 2 ports-supfile

It tells me it cannot find the command


FAQ, I think.  For csh/tcsh, issue rehash:

# portinstall myfooport
# myfooport
myfooport:  Command not found
# rehash
# myfooport  --version
Welcome to myfooport v0.0.0!

If you are indeed having this problem with /bin/sh,
I'm not at all sure why, as I think it rereads the
executables in $PATH fairly continuously (but then,
I hardly use it for interactive use).  A brief test
here didn't show evidence that this would be a problem
for sh, though.

HTH,

Kevin Kinsey
--
Nobody wants constructive criticism.
It's all we can do to put up with constructive praise.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell PATH not being reread

2007-04-12 Thread sac

As Kevin Kinsey pointed out, if your shell is csh, ksh, zsh or tcsh, all you
have to do is run
$ hash -r
or
$ rehash


On 4/12/07, Sean Murphy [EMAIL PROTECTED] wrote:


I have just installed FreeBSD 6.2 Release.  I su to root and run

pkg_add -r cvsup-without-gui

It installed fine

I edited the ports-supfile
cd /usr/share/examples/cvsup
vi ports-supfile

but when I go to run

cvsup -g -L 2 ports-supfile

It tells me it cannot find the command

I logout completely then login again and su and I can now run the same
command from the /usr/share/examples/cvsup directory.

It seems the path is not being rebuilt or reread when I added that
package but when I logout and login it works.  I know I can type in the
the full path and command but was wondering if there was a solution to
reload/rebuild/reread the path so I don't have to login/logout/login

env for myself is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/smurphy/bin
SHELL=/bin/sh

env for root is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
SHELL=/bin/csh


Thanks.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





--

Regards,
Sachidananda.
Informedia Technologies (Mysore) Pvt. Ltd.
Mysore.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell PATH not being reread

2007-04-12 Thread Sean Murphy

sac wrote:
As Kevin Kinsey pointed out, if your shell is csh, ksh, zsh or tcsh, 
all you

have to do is run
$ hash -r
or
$ rehash


On 4/12/07, Sean Murphy [EMAIL PROTECTED] wrote:


I have just installed FreeBSD 6.2 Release.  I su to root and run

pkg_add -r cvsup-without-gui

It installed fine

I edited the ports-supfile
cd /usr/share/examples/cvsup
vi ports-supfile

but when I go to run

cvsup -g -L 2 ports-supfile

It tells me it cannot find the command

I logout completely then login again and su and I can now run the same
command from the /usr/share/examples/cvsup directory.

It seems the path is not being rebuilt or reread when I added that
package but when I logout and login it works.  I know I can type in the
the full path and command but was wondering if there was a solution to
reload/rebuild/reread the path so I don't have to login/logout/login

env for myself is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/smurphy/bin 


SHELL=/bin/sh

env for root is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin 


SHELL=/bin/csh


Thanks.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]







rehash worked thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell PATH not being reread

2007-04-12 Thread RW
On Thu, 12 Apr 2007 10:29:29 -0700
Sean Murphy [EMAIL PROTECTED] wrote:

 I have just installed FreeBSD 6.2 Release.  I su to root and run
 
 pkg_add -r cvsup-without-gui
 
 It installed fine

Just in case you are not aware, the base-system now comes with csup,
which is a rewrite of cvsup-without-gui in C. CVSup is written in
Modulo-2, and its dependencies kept it out of the base-system.









___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]