home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / nShell / bin / man / man.rsrc / TEXT_16110_man export general.txt < prev    next >
Encoding:
Text File  |  1994-09-24  |  597 b   |  22 lines

  1.  
  2. NAME
  3.  
  4. export - export a shell variable from a script
  5.  
  6. SYNOPSIS
  7.  
  8. export variable_name
  9.  
  10. DESCRIPTION
  11.  
  12. The "export" command copies a shell variable from the current script environment to that of the parent.  The "export" operation copies variables up a single level.  To export variables from nested scripts, a series of "export" commands would be required.
  13.  
  14. The "export" command should only be used from within scripts, and fails when typed directly on the command line.
  15.  
  16. EXAMPLES
  17.  
  18. #
  19. # set the working directory and export the corresponding variable
  20. #
  21. cd "my disk:my favorite tools:tools"
  22. export PWD