unset man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

set(1F)				 FMLI Commands			       set(1F)

NAME
       set, unset - set and unset local or global environment variables

SYNOPSIS
       set [-l variable [=value]] ...

       set [-e variable [=value]] ...

       set [-ffile variable [=value]]... ...

       unset -l variable...

       unset -f file variable...

DESCRIPTION
       The  set	 command  sets	variable  in  the  environment,	 or adds vari‐
       able=value to file. If variable is not  equated	it  to	a  value,  set
       expects	the  value to be on stdin. The unset command removes variable.
       Note that the FMLI predefined, read-only variables (such as ARG1),  may
       not be set or unset.

       Note that at least one of the above options must be used for each vari‐
       able being set or unset. If you set  a  variable	 with  the  -ffilename
       option,	you  must  thereafter  include	filename in references to that
       variable. For example, ${(file)VARIABLE}.

       FMLI inherits the UNIX environment when invoked.

OPTIONS
       -l	 Sets or unsets the specified variable in the  local  environ‐
		 ment.	Variables  set	with  -l will not be inherited by pro‐
		 cesses invoked from FMLI.

       -e	 Sets the specified variable in the  UNIX  environment.	 Vari‐
		 ables	set with -e will be inherited by any processes started
		 from FMLI. Note that these variables cannot be unset.

       -ffile	 Sets or unsets the specified variable in the global  environ‐
		 ment.	The  argument file is the name, or pathname, of a file
		 containing lines of the form  variable=value.	file  will  be
		 created  if  it  does	not  already exist. Note that no space
		 intervenes between -f and file.

EXAMPLES
       Example 1 Using the set Command

       Storing a selection made in a menu:

	 name=Selection 2
	 action=`set -l SELECTION=2`close

NOTES
       Variables set to be available to the UNIX environment (those set	 using
       the  -e	option)	 can  only be set for the current fmli process and the
       processes it calls.

       When using the -f option, unless file is unique to the  process,	 other
       users  of  FMLI	on the same machine will be able to expand these vari‐
       ables, depending on the read/write permissions on file.

       A variable set in one frame may be referenced or	 unset	in  any	 other
       frame. This includes local variables.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │SUNWcsu			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       env(1), sh(1), attributes(5)

SunOS 5.10			  5 Jul 1990			       set(1F)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net