export (built-in Bash command)

Content

 

Data

License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.

Short description:

The manual page and help for the export built-in Bash command. Mark all NAMES as automatic environment variables for export. Thus, all subsequent commands are displayed in the context. If VALUE is also specified, a value is entered.

 

 

Man page output

man bash
[...]
       export [-fn] [name[=word]] ...
       export -p
              The supplied names are marked for automatic export to  the  environment  of  subse-
              quently  executed  commands.   If  the -f option is given, the names refer to func-
              tions.  If no names are given, or if the -p option is supplied, a list of names  of
              all  exported variables is printed.  The -n option causes the export property to be
              removed from each name.  If a variable name is followed by =word, the value of  the
              variable  is set to word.  export returns an exit status of 0 unless an invalid op-
              tion is encountered, one of the names is not a valid shell variable name, or -f  is
              supplied with a name that is not a function.
[...]

 

 

Help output

export --help
export: export [-fn] [név[=érték] ...] vagy export -p
    Parancsértelmező-változók exportálás attribútumának beállítása.
    
    Minden NÉV automatikus környezeti változóvá exportálásra jelölése. Így
    minden ezután kiadott parancs környezetében megjelenik. Ha az ÉRTÉK is
    meg van adva, értékadás is történik.
    
    Kapcsolók:
      -f        parancsértelmező-függvényekre vonatkozzon
      -n        export attribútum eltávolítása minden NÉVRŐL
      -p        összes exportált változó és függvény listázása
    
    Egy „--” argumentum letiltja a további kapcsolóértelmezést.
    
    Kilépési kód:
    Sikerrel tér vissza, kivéve ha érvénytelen kapcsolót vagy NEVET kap.

 

Related Content