.\" Copyright (c) 2003 Matthew Dillon <email@example.com>
.\" All rights reserved.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\" $DragonFly: src/bin/varsym/varsym.1,v 1.2 2003/11/10 23:58:59 dillon Exp $
.Dd Nov 5, 2003
.Dt VARSYM 1
.Nd get and set user and system-wide variables for variant symlinks
.Op Fl qadsup
program manages user and system-wide variables. These variables are typically
used by the system to resolve variant symlinks but may also be used generally.
For each operand set, modify, retrieve, or delete the specified variable.
By default variables specified without data are retrieved and variables
specified with data are set. Variables may be set to empty.
.Bl -tag -width Ar
.It Fl a
List all variables at the specified level. Note that per-process variables
override per-user variables and per-user variables override system-wide
variables. By default, per-user variables are listed.
.It Fl q
Quiet mode. When retrieving a variable only its data is printed.
.It Fl d
Delete mode. The specified variables are deleted. Any specified data is
.It Fl s
This option causes variables to be set system-wide and restricts retrievals
to system-specific variables.
.It Fl u
This option causes variables to be set on a per-user-id basis and restricts
retrievals to user-specific variables. This is the default.
.It Fl p
This option causes variables to be set on a per-process basis and restricts
retrievals to process-specific variables. Note that since
is run as its own process, using this option to set a variable will not
effect your shell's namespace.
.Sh RETURN VALUES
utility exits with one of the following values:
.Bl -tag -width Ds
No errors occured.
A requested variable could not be found
A requested variable could not be set
.Sh SEE ALSO
.Xr ln 1 ,