GET.STACK

GET.STACK

Top  Previous  Next

 

The GET.STACK command restores a previously saved command stack.

 

 

Format

 

GET.STACK {{file.name} stack.name}

 

where

 

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

 

stack.nameis the name of the saved command stack.

 

 

The GET.STACK command replaces the current command stack with the record named stack.name from the $SAVEDLISTS file. The previous content of the command stack is discarded.

 

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

 

 

Example

 

GET.STACK <<@LOGNAME>>

Command stack restored from 'jsmith'

 

This command restores the command stack from a record with id as the user's login name in the $SAVEDLISTS file.

 

 

See also:

CLEAR.STACK, SAVE.STACK