SAVE.STACK

SAVE.STACK

Top  Previous  Next

 

The SAVE.STACK command saves the current command stack.

 

 

Format

 

SAVE.STACK {{file.name} stack.name}

 

where

 

file.nameis the name of the file in which the stack is to be saved. If omitted but the stack.name is present, the $SAVEDLISTS file is used.

 

stack.nameis the name to be given to the saved command stack. A prompt is issued if this name is omitted.

 

 

The SAVE.STACK command copies the current command stack to file.name as a record named stack.name. Any existing record of the same name will be overwritten.

 

If no command line options are given, the user is prompted to enter the stack.name and the file.name defaults to $SAVEDLISTS.

 

 

Example

 

SAVE.STACK <<@LOGNAME>>

Command stack 'jsmith' saved in $SAVEDLISTS

 

This command saves the current command stack to a record with id as the user's login name in the $SAVEDLISTS file.

 

 

See also:

CLEAR.STACK, GET.STACK