GDPROG(1)

NAME
gdprog - helper program for gd alias

SYNOPSIS
gdprog [ -ib ] [ --install-bash ] [ -it ] [ --install-tcsh ]

DESCRIPTION
gdprog is not supposed to be called directly, but rather through the alias or shell-function gd. Please read the man-page for gd(1) before reading any further. If gdprog is started with one of the options mentioned below (and above), it will output a string suitable for installing the alias in the specified shell. Thus, to install the alias, you may evaluate the output from gdprog as in
    eval `gdprog --install-bash` If gdprog is not in a directory mentioned in your PATH-variable, you must enter the full path to the program. If the first argument to gdprog is "gd", it assumes it is called from the alias, and behaves as another program (See gd(1) for details). Thus, if you want to install the alias manually, you should pass "gd" followed by any parameters given to the alias. After successfully locating a directory, gdprog outputs the full directory name, and exits with success. In that case the alias should store the output in a shell-variable, and pass it to cd. All messages are written to stderr, so they will be visible even if stdout is redirected. If gdprog returns with failure, a suitable error-message is displayed, so the alias should do nothing.

OPTIONS

-ib, --install-bash
    Output a string that will install a bash-function for gd.

-it, --install-tcsh
    Print a command suitable for installing the gd- alias in tcsh.

Please let me know of installation strings for other shells...

SEE ALSO
gd(1)

AUTHOR
This perl-program was written from scratch in 1994 by Sverre H. Huseby, Norway (sverrehu@ifi.uio.no)