The environmental variable MCWD may be used to locate the file where the device and current working directory information is stored. The default is '$HOME/.mcwd'. Information in this file is ignored if the file is more than 6 hours old.
MSDOS subdirectory names are supported with either the '/' or '\' separator. The use of the '\' separator or wildcards will require the directory name to be enclosed in quotes to protect it from the shell.
Mcd returns 0 on success or 1 on failure.
It may be wise to remove old .mcwd files at logout.