Browse Prior Art Database

Method for Auxiliary Command Line Resolution

IP.com Disclosure Number: IPCOM000107441D
Original Publication Date: 1992-Feb-01
Included in the Prior Art Database: 2005-Mar-21
Document File: 1 page(s) / 35K

Publishing Venue

IBM

Related People

Hays, DE: AUTHOR

Abstract

Disclosed is a program that pre-processes a user's command invocations and provides alternative executions when appropriate. The program acts as a wrapper around the user's normal command interpreter feeding it pre-processed commands which allows the user to increase the function of an existing interpreter without modification.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Method for Auxiliary Command Line Resolution

       Disclosed is a program that pre-processes a user's
command invocations and provides alternative executions when
appropriate. The program acts as a wrapper around the user's normal
command interpreter feeding it pre-processed commands which allows
the user to increase the function of an existing interpreter without
modification.

      The user invokes the program "pathcmd" from the command line as
usual. But instead of returning, pathcmd maintains control and
continues executing as the new command line processor.  The standard
command prompt is then displayed by pathcmd.  When the user issues a
command, it is first tested for validity.  If valid, it is executed
normally by passing the entered text to the original command
processor.  If not, the command is then checked against the following
tests until valid or until no valid combinations from the following
are found:
  cd ./<command> : (current directory relative)
  cd ../<command> : (parent directory relative)
  cd /<command> : (root)
Thus, if the user types the following command:
  .. pathcmd executes the command "cd ./.." (directory-up) since ..
is not a valid command.  Using this method, a user can traverse and
directory tree simply by entering the name of the destination
directory.  If the command is not a valid directory, pathcmd sends it
to the previous command processor for error notification.