* Delete an environment variable?
@ 1994-12-13 21:20 Tim Llewellyn
1994-12-13 22:10 ` Tim Llewellyn
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Tim Llewellyn @ 1994-12-13 21:20 UTC (permalink / raw)
I just tried to find a way to undefine/delete my DISPLAY environment
variable (I want to use EDT+ in VT rather than X-windows mode as it
has an annoying feature in X mode).
I perused the output form man env to no avail.
I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
commands.
This MUST be psosible, right?
TIA for any help.
--
-----------------------------------------------------+------------------+
Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
I speak for me and noone else OK (and I might even | Soukous Makossa |
change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
-----------------------------------------------------+------------------+
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
@ 1994-12-13 22:10 ` Tim Llewellyn
1994-12-14 4:13 ` fuller
` (2 more replies)
1994-12-14 3:09 ` Joseph B. Gurman
` (3 subsequent siblings)
4 siblings, 3 replies; 11+ messages in thread
From: Tim Llewellyn @ 1994-12-13 22:10 UTC (permalink / raw)
In article <D0rpyD.BLM@info.bris.ac.uk>, tjl@siva.bris.ac.uk (Tim Llewellyn)
writes:
|>
|>I just tried to find a way to undefine/delete my DISPLAY environment
|>variable (I want to use EDT+ in VT rather than X-windows mode as it
|>has an annoying feature in X mode).
|>
|>I perused the output form man env to no avail.
|>
|>I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
|>commands.
|>
|>This MUST be psosible, right?
|>
|>TIA for any help.
|>
|>--
I got the following reply (very rapidly too) via email
unsetenv is to setenv in UNIX what deassign is to assign in VMS
-------------------------------------------------------------------------------
Elliot P. Kanter Email: kanter@anl.gov| "We must increase education,
Physics Division-203 Voice: (708)252-4050 |employment, decrease spending,
Argonne National Lab FAX: -2864 |(etc) in order that the purse of
Argonne, IL 60439-4843 Sec: -4044 |the people not become depleted."
---------------------------------------------------------------Cicero----------
to which I replied:
Thanks a lot. I wonder then why it is not mentioned
in the man env page? IN fact just to check I tried:
# man env | grep unsetenv
# apropos env | grep unsetenv
# unsetenv
unsetenv: Too few arguments.
# man unsetenv
There is not an entry for unsetenv.
#
I wonder why it is not documented properly? (in the online help that is).
OSF/1 V3.0 btw, and unsetenv DOES work.
--
-----------------------------------------------------+------------------+
Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
I speak for me and noone else OK (and I might even | Soukous Makossa |
change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
-----------------------------------------------------+------------------+
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
1994-12-13 22:10 ` Tim Llewellyn
@ 1994-12-14 3:09 ` Joseph B. Gurman
1994-12-14 13:33 ` Klaus Petersen
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Joseph B. Gurman @ 1994-12-14 3:09 UTC (permalink / raw)
In article <D0rpyD.BLM@info.bris.ac.uk>, Tim.Llewellyn@bristol.ac.uk wrote:
> I just tried to find a way to undefine/delete my DISPLAY environment
> variable (I want to use EDT+ in VT rather than X-windows mode as it
> has an annoying feature in X mode).
>
> I perused the output form man env to no avail.
>
> I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
> commands.
>
> This MUST be psosible, right?
'Deed it is possible: try unsetenv. E.g.
> setenv FROBOZZ magic_boat
> printenv FROBOZZ
> magic_boat
> unsetenv FROBOZZ
> printenv FROBOZZ
>
Thiis is assuming you're using one of the c/tc/k shells,
Joe Gurman
--
Joseph B. Gurman / NASA Goddard Space Flight Center/ Solar Data Analysis Center / Code 682 / Greenbelt MD 20771 USA / gurman@uvsp.gsfc.nasa.gov
| Federal employees are still prohibited from holding opinions while at work. Any opinions expressed herein must therefore be someone else's. |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 22:10 ` Tim Llewellyn
@ 1994-12-14 4:13 ` fuller
1994-12-14 20:51 ` Dan Pop
1994-12-20 13:56 ` Jong Woo Han
2 siblings, 0 replies; 11+ messages in thread
From: fuller @ 1994-12-14 4:13 UTC (permalink / raw)
In article <D0rs9n.CGK@info.bris.ac.uk>, tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
[...]
>
>Thanks a lot. I wonder then why it is not mentioned
>in the man env page? IN fact just to check I tried:
>
># man env | grep unsetenv
># apropos env | grep unsetenv
># unsetenv
>unsetenv: Too few arguments.
># man unsetenv
>There is not an entry for unsetenv.
>#
>
>
>I wonder why it is not documented properly? (in the online help that is).
>
>OSF/1 V3.0 btw, and unsetenv DOES work.
>
It *is* documented properly.
Since "setenv" and "unsetenv" are commands to "csh", they're documented there
by their documenters ;^)
Try
man csh
and search for "setenv" there.
+===================+=========================+================================+
| ____ | Stuart R. Fuller | fuller@pt9113.ped.pto.ford.com |
| / / | Digital Equipment Corp. | fuller@gldoa.enet.dec.com |
| /____ _/_ | Detroit, MI, USA, Earth | 76703.501@compuserve.com |
| / / / / +=========================+================================+
| /___/ /_ /___/\ | Opinions expressed here are mine, and mine alone |
+===================+==========================================================+
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
1994-12-13 22:10 ` Tim Llewellyn
1994-12-14 3:09 ` Joseph B. Gurman
@ 1994-12-14 13:33 ` Klaus Petersen
1994-12-14 14:21 ` Dan Pop
1994-12-15 4:05 ` Phil Knaack
4 siblings, 0 replies; 11+ messages in thread
From: Klaus Petersen @ 1994-12-14 13:33 UTC (permalink / raw)
tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
>I just tried to find a way to undefine/delete my DISPLAY environment
>variable (I want to use EDT+ in VT rather than X-windows mode as it
>has an annoying feature in X mode).
>I perused the output form man env to no avail.
>I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
>commands.
>This MUST be psosible, right?
>TIA for any help.
Try: unsetenv *varname*
>--
>-----------------------------------------------------+------------------+
>Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
>Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
>HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
>I speak for me and noone else OK (and I might even | Soukous Makossa |
>change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
>-----------------------------------------------------+------------------+
Klaus
--
Klaus Petersen
CSC Student at Copenhagen University email: klpe@diku.dk
Applications programmer at Danish Energy Agency
email: klp@ens006.ens.min.dk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
` (2 preceding siblings ...)
1994-12-14 13:33 ` Klaus Petersen
@ 1994-12-14 14:21 ` Dan Pop
1994-12-19 17:12 ` Tim Llewellyn
1994-12-15 4:05 ` Phil Knaack
4 siblings, 1 reply; 11+ messages in thread
From: Dan Pop @ 1994-12-14 14:21 UTC (permalink / raw)
In <D0rpyD.BLM@info.bris.ac.uk> tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
>
>I just tried to find a way to undefine/delete my DISPLAY environment
>variable (I want to use EDT+ in VT rather than X-windows mode as it
>has an annoying feature in X mode).
>
>I perused the output form man env to no avail.
>
>I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
>commands.
>
>This MUST be psosible, right?
>
It is, but you have to look in the right man page. For obvious reasons,
you can't set or delete your environment variables with Unix commands,
you have to do this with shell builtin commands. So, type
man your_shell
to get the answer. For (t)csh it's "unsetenv DISPLAY".
Dan
--
Dan Pop | The only reason God was able to make the
CERN, CN Division | world in 7 days was he didn't have to remain
Email: danpop@cernapo.cern.ch | compatible with the previous version.
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 22:10 ` Tim Llewellyn
1994-12-14 4:13 ` fuller
@ 1994-12-14 20:51 ` Dan Pop
1994-12-20 13:56 ` Jong Woo Han
2 siblings, 0 replies; 11+ messages in thread
From: Dan Pop @ 1994-12-14 20:51 UTC (permalink / raw)
In <D0rs9n.CGK@info.bris.ac.uk> tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
>Thanks a lot. I wonder then why it is not mentioned
>in the man env page? IN fact just to check I tried:
>
># man env | grep unsetenv
># apropos env | grep unsetenv
># unsetenv
>unsetenv: Too few arguments.
># man unsetenv
>There is not an entry for unsetenv.
>#
>
>I wonder why it is not documented properly? (in the online help that is).
>
>OSF/1 V3.0 btw, and unsetenv DOES work.
>
But have you tried to get the online documentation for setenv?
ues5:~ 1> man setenv
No manual entry found for setenv.
And yet, you know about setenv. I bet you can get unsetenv
described in the same place as setenv. Does this make sense?
Next time, do your homework before complaining.
Dan
--
Dan Pop | The only reason God was able to make the
CERN, CN Division | world in 7 days was he didn't have to remain
Email: danpop@cernapo.cern.ch | compatible with the previous version.
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
` (3 preceding siblings ...)
1994-12-14 14:21 ` Dan Pop
@ 1994-12-15 4:05 ` Phil Knaack
4 siblings, 0 replies; 11+ messages in thread
From: Phil Knaack @ 1994-12-15 4:05 UTC (permalink / raw)
In <D0rpyD.BLM@info.bris.ac.uk>
tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
>I just tried to find a way to undefine/delete my DISPLAY environment
>variable (I want to use EDT+ in VT rather than X-windows mode as it
>has an annoying feature in X mode).
>I perused the output form man env to no avail.
I assume you are using sh/csh/tcsh as your command shell? If you are
using csh or tcsh, do
% unsetenv DISPLAY
or if using sh,
$ unset DISPLAY
>-----------------------------------------------------+------------------+
>Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
>Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
>HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
>I speak for me and noone else OK (and I might even | Soukous Makossa |
>change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
>-----------------------------------------------------+------------------+
Cheers,
Phil
--
Phil Knaack flipk@iastate.edu
WGA, Sociology Department Student Development Group flipk@cs.iastate.edu
Iowa State University Project Vincent, ISU flipk@vorpal.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-14 14:21 ` Dan Pop
@ 1994-12-19 17:12 ` Tim Llewellyn
1994-12-20 0:32 ` Charles M Richmond
0 siblings, 1 reply; 11+ messages in thread
From: Tim Llewellyn @ 1994-12-19 17:12 UTC (permalink / raw)
In article <D0t18I.CEA@news.cern.ch>, danpop@cernapo.cern.ch (Dan Pop) writes:
|>
|>In <D0rpyD.BLM@info.bris.ac.uk> tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
|>>
|>>I just tried to find a way to undefine/delete my DISPLAY environment
|>>variable (I want to use EDT+ in VT rather than X-windows mode as it
|>>has an annoying feature in X mode).
|>>
|>>I perused the output form man env to no avail.
|>>
|>>I guess I want the OSF/1 equivalent of the VMS deassign or delete/symbol
|>>commands.
|>>
|>>This MUST be psosible, right?
|>>
|>It is, but you have to look in the right man page. For obvious reasons,
|>you can't set or delete your environment variables with Unix commands,
|>you have to do this with shell builtin commands. So, type
|>
|>man your_shell
|>
|>to get the answer. For (t)csh it's "unsetenv DISPLAY".
OK thanks to everyone for the deluge of mail and postings. However I think
Dan's arguement (and that of others) about needing to look in the
(t)chsh man page is REAL weak. I mean, people flame VMS because they
think that $ HELP HINTS is not obvious enough for the DCL illiterate.
btw on my system (V3.0) the csh man page has no reference to unsetenv,
or setenv for that matter. tcsh man page does, however.
|>
|>Dan
|>--
|>Dan Pop | The only reason God was able to make the
|>CERN, CN Division | world in 7 days was he didn't have to remain
|>Email: danpop@cernapo.cern.ch | compatible with the previous version.
|>Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
|>
--
-----------------------------------------------------+------------------+
Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
I speak for me and noone else OK (and I might even | Soukous Makossa |
change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
-----------------------------------------------------+------------------+
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-19 17:12 ` Tim Llewellyn
@ 1994-12-20 0:32 ` Charles M Richmond
0 siblings, 0 replies; 11+ messages in thread
From: Charles M Richmond @ 1994-12-20 0:32 UTC (permalink / raw)
tjl@siva.bris.ac.uk (Tim Llewellyn) writes:
>OK thanks to everyone for the deluge of mail and postings. However I think
>Dan's arguement (and that of others) about needing to look in the
>(t)chsh man page is REAL weak. I mean, people flame VMS because they
>think that $ HELP HINTS is not obvious enough for the DCL illiterate.
>btw on my system (V3.0) the csh man page has no reference to unsetenv,
>or setenv for that matter. tcsh man page does, however.
From the "csh" man page on 3.0 ----
setenv name value
Sets the value of the environment variable name to be value, a single
string. The most commonly used environment variables USER, TERM, HOME,
and PATH are automatically imported to and exported from the csh vari-
ables user, term, home, and path, so there is no need to use setenv for
these common environment variables.
If you modify the LC_COLLATE or LANG environment variables, the current
international character support environment and collating sequence are
changed as specified for subsequent commands executed from the shell.
....
unsetenv pattern
Removes all variables with names that match pattern from the environ-
ment. See also the setenv command (discussed earlier in this list).
So which man page was it that you were really looking at???
Charlie
--
*****************************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@asoko.iisc.com cmr@world.std.com *
* Specializing in UNIX, X, Image Processing, and Communications. *
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Delete an environment variable?
1994-12-13 22:10 ` Tim Llewellyn
1994-12-14 4:13 ` fuller
1994-12-14 20:51 ` Dan Pop
@ 1994-12-20 13:56 ` Jong Woo Han
2 siblings, 0 replies; 11+ messages in thread
From: Jong Woo Han @ 1994-12-20 13:56 UTC (permalink / raw)
Tim Llewellyn (tjl@siva.bris.ac.uk) wrote:
(stuff deleted)
: Thanks a lot. I wonder then why it is not mentioned
: in the man env page? IN fact just to check I tried:
: # man env | grep unsetenv
: # apropos env | grep unsetenv
: # unsetenv
: unsetenv: Too few arguments.
: # man unsetenv
: There is not an entry for unsetenv.
: #
: I wonder why it is not documented properly? (in the online help that is).
: OSF/1 V3.0 btw, and unsetenv DOES work.
setenv and unsetenv are shell built-in command, but
not runnable binaries. you will find about them in
csh man page.
: Tim Llewellyn - OpenVMS, Soukous and Cricket Addict |Hey, and get wise |
: Physicist Programmer, Bristol Uni Particle Physics. | to the sounds of |
: HEPNET/SPAN 19716::TJL Internet tjl@siva.bris.ac.uk | Africa,seen. |
: I speak for me and noone else OK (and I might even | Soukous Makossa |
: change my mind sometimes!-) Atari and EMagic user too| Mbalax Rumba...|
: -----------------------------------------------------+------------------+
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1994-12-20 13:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-13 21:20 Delete an environment variable? Tim Llewellyn
1994-12-13 22:10 ` Tim Llewellyn
1994-12-14 4:13 ` fuller
1994-12-14 20:51 ` Dan Pop
1994-12-20 13:56 ` Jong Woo Han
1994-12-14 3:09 ` Joseph B. Gurman
1994-12-14 13:33 ` Klaus Petersen
1994-12-14 14:21 ` Dan Pop
1994-12-19 17:12 ` Tim Llewellyn
1994-12-20 0:32 ` Charles M Richmond
1994-12-15 4:05 ` Phil Knaack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox