UP (Move to a Parent Directory)
Create a menu that contains the names of the parent directory, its
parent directory, and so on, back to the HOME directory.
• List of parent directories. UP uses PATH to return the names of the
current directory and all parent directories.
• Subset of a list. UP uses SUB to remove the name of the current
directory from the PATH list.
• Custom menu. UP uses MENU to create a custom menu of parent
directories from the modified PATH list.
OVEI': ::; I ZE 1 -
Begin the program.
Put the path list on the stack.
Put 1 on the stack.
1 on the stack.
Create a subset of the PATH list
that includes all names but the
last name (the current directory).
Create a menu of parent
End the program.
Put the program on the stack.
Store the program as UP.
28: Programming Examples