Checksum: 3581954367 (Verify with "brik", report brik bugs to me -- R.D.)
Posting-number: Volume 01, Issue 245
Originally-from:
[email protected] (j.m.borden)
Submitted-by:
[email protected] (j.m.borden)
Archive-name: mycd/mycd.uue
This is a CD utility that I wrote that behaves like the UNIX (tm) cd
command. It robustly allows wildcards, environmental variables, and
will use an environmental variable CDPATH to help locate regularly
accessed directories. Unix folks may already appreciate the value of a
CDPATH. The documentation is thorough.
Marty Borden
marty%garage.att.com [internet] or att!granjon!marty [uucp]
[N.B. mail has been very unreliable lately.]
[
This is the best free directory-changing program I've seen so far under
MS-DOS. In less than 3000 bytes it gives you just about everything you
need in a directory changing program. (Microsoft showed foresight when
it decided to make the current directory an attribute of the MS-DOS
kernel rather than an attribute of each process. What the MS-DOS CD
command lacks, which is a lot, can therefore be fixed by nifty programs
like this one.)
MYCD allows the use of environment variables (prefixed by % or $) and
wildcards (* and ?) in a directory change string, so you can say
cd $home/do*
and land in /binaries/ibm/pc/doc, provided you have an environment
variable
HOME=\binaries/ibm/pc
already defined.
If an environment variable CDPATH is defined, it specifies a list of
directories to look inside for directories to change to. So if CDPATH
contains a directory called \xyz, and you type "mycd xyuuu", and if
there is a directory xyuuu inside xyz, you will be changed to
\xyz\xyuuu, if it isn't found elsewhere.
Not bug-free, alas. A leading forward slash in an environment
variable causes trouble. So in the example given before, you could
not have an environment variable
HOME=/binaries/ibm/pc
and make it work.
Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command.
checksum size (bytes) file (between BEGIN--cut and END--cut lines)
29722 8867 this uuencoded posting
checksum size (bytes) file
38872 6415 mycd.arc
-- R.D.
]