GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
EXPORT(1) fish-shell EXPORT(1)

export - compatibility function for exporting variables

export
export NAME=VALUE

export is a function included for compatibility with POSIX shells. In general, the set builtin should be used instead.

When called without arguments, export prints a list of currently-exported variables, like set -x.

When called with a NAME=VALUE pair, the variable NAME is set to VALUE in the global scope, and exported as an environment variable to other commands.

There are no options available.

The following commands have an identical effect.

set -gx PAGER bat
export PAGER=bat


Note: If you want to add to e.g. $PATH, you need to be careful to combine the list. Quote it, like so:

export PATH="$PATH:/opt/bin"


Or just use set, which avoids this:

set -gx PATH $PATH /opt/bin


1.
The set command.

2024, fish-shell developers

July 5, 2025 4.0

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.