2012-06-06, 04:46 PM
On a new install of Interix, with the pkg-complete for x64 (genuineintel), bash is... not configured as I would expect, by default. running "pkg_update -rL bash" didn't help. In particular:
It is missing the Interix PATH entries (/bin, /usr/local/bin, /opt...)
It is missing the MANPATH, TERM, and TERMCAP variables entirely (and probably others).
It is defaulting to a working directory of /dev/fs/C/Windows/System32 (location of posix.exe, probably).
Additionally, the built-in LS is acting weirdly; the command "ls /" produces the listing for /dev/fs/C/, not for / (though you can get the listing for / by asking for "ls /../../.."). /bin/ls works more-or-less as expected, but isn't used by default (see weirdness of PATH).
Launching bash from within tcsh works fine, since the inherited environment is already set up. However, launching bash from the Run dialog, the system tray, or a cmd terminal produces the unconfigured version (although it inherits the CWD from cmd).
Launching bash from the Start menu (All Programs->Subsystem for Unix...->Bash Shell) doesn't work at all, because the shortcut specifies a working directory ("Start in" field) of "C:\WINNT40\system32\" which my NT 6.1 box utterly lacks...
System: Windows 7 SP1, Enterprise edition, x64. UAC is enabled but setuid behavior and su-to-root are both allowed, and the installation was done as Administrator.
It is missing the Interix PATH entries (/bin, /usr/local/bin, /opt...)
It is missing the MANPATH, TERM, and TERMCAP variables entirely (and probably others).
It is defaulting to a working directory of /dev/fs/C/Windows/System32 (location of posix.exe, probably).
Additionally, the built-in LS is acting weirdly; the command "ls /" produces the listing for /dev/fs/C/, not for / (though you can get the listing for / by asking for "ls /../../.."). /bin/ls works more-or-less as expected, but isn't used by default (see weirdness of PATH).
Launching bash from within tcsh works fine, since the inherited environment is already set up. However, launching bash from the Run dialog, the system tray, or a cmd terminal produces the unconfigured version (although it inherits the CWD from cmd).
Launching bash from the Start menu (All Programs->Subsystem for Unix...->Bash Shell) doesn't work at all, because the shortcut specifies a working directory ("Start in" field) of "C:\WINNT40\system32\" which my NT 6.1 box utterly lacks...
System: Windows 7 SP1, Enterprise edition, x64. UAC is enabled but setuid behavior and su-to-root are both allowed, and the installation was done as Administrator.