
Unix

Q: I have wcd.exe installed and defined the function
   in ~/.bashrc but the shell returns: "command not found".

A: The problem is that ~/.bashrc is not executed because
   the bash is started as an interactive login shell.
   The bash only executes the commands in ~/.bashrc if it
   is started as an interactive shell that is not a login
   shell.
   If the bash is started as an interactive login shell it
   first reads and executes commands from the file
   /etc/profile, if that file  exists. After  reading  that
   file, it looks for ~/.bash_profile, ~/.bash_login, and
   ~/.profile, in that order, and reads and executes commands
   from the first one that exists and is readable.
   The solution is to define the wcd function in one of these
   files.

Q: The go-script will not change to paths that have characters
   > 127. The shell returns: wcd.go: cannot execute binary file

A: This problem seems to be system/shell dependent. It can be
   fixed by making the first line of the go-script: "#!/bin/sh"
   The following wcd function shows a workaround:

   function wcd
   {
    wcd.exe $*
    echo '#!/bin/sh' > ~/bin/wcd2.go
    cat ~/bin/wcd.go >> ~/bin/wcd2.go
    . ~/bin/wcd2.go
   }


DOS/Windows 3.1/9x/ME/NT/2000

Q: Wcd doesn't restore the screen after I have made a choice
   from a list. The entire screen buffer has gone blank.
   How can I make wcd restore the screen?

A: You probably are using wcd with PDCurses interface.
   Programs build with PDCurses interface do by default
   not restore the screen buffer. This can be changed
   with the environment variable PDC_RESTORE_SCREEN.
   Add the following line to your c:\autoexec.bat file:

   set PDC_RESTORE_SCREEN=1

Windows NT/2000/XP

Q: The system administrator has set environment variable HOME,
   but I want the behaviour of wcd as if HOME and WCDHOME were
   not set (as I was used to on DOS/Windows 9x).

A: In the wcd.bat file you have to copy HOME into another
   variable, unset HOME, run wcd, and copy HOME back to its original
   value.  An example follows:

   @echo off
   set HOMETEMP=%HOME%
   set HOME=
   wcdwin32.exe %*
   set HOME=%HOMETEMP%
   c:\wcdgo.bat

   You may need to rescan your drives after this.

