Sponsored Content
Full Discussion: how to unsetenv ?
Top Forums UNIX for Dummies Questions & Answers how to unsetenv ? Post 10930 by jamesbond on Sunday 25th of November 2001 02:44:55 PM
Old 11-25-2001
how to unsetenv ?

I executed the following lines twice (accidentally)

setenv JAVA_HOME=/usr/local/jdk1.1.8
setenv PATH $JAVA_HOME/bin:$PATH

I'm in the tcsh shell (freebsd 4.1.1)
When I do : echo $PATH it shows up like this:

/usr/local/jdk1.1.8=/bin /usr/local/jdk1.1.8=/bin

1 .How can I remove one of those ? ( I tried unsetenv, but I didn't succeed)

2. Why does it add a '=' in the path? Is this correct?
 
svscanboot(8)						      System Manager's Manual						     svscanboot(8)

NAME
svscanboot - starts svscan(8) in the /service directory, with output and error messages logged through readproctitle(8). svscanboot is available in daemontools 0.75 and above. SYNOPSIS
svscanboot DESCRIPTION
svscanboot runs the pipeline svscan /service 2>&1 | readproctitle service errors: ..... with 400 dots. The last 400 bytes of error messages from svscan(8) will be visible to ps(1) through readproctitle(8). svscanboot sets $PATH to /command:/usr/local/bin:/usr/local/sbin: /bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin (all in one line, no space) and clears all other environment variables. Program writers are encouraged to use globally allocated names in /command. SEE ALSO
supervise(8), svc(8), svok(8), svstat(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), tai64nlocal(8), setuidgid(8), envuidgid(8), envdir(8), softlimit(8), setlock(8), ps(1) http://cr.yp.to/daemontools.html http://cr.yp.to/slashcommand.html svscanboot(8)
All times are GMT -4. The time now is 01:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy