Maybe you have already set the HOME environment variable before starting MSYS, and maybe that directory contains a ".profile" or a similar file? That would not be a problem in itself, but you would need to make sure the script doesn't try to use any commands (like whoami) that don't exist in MSYS. If the existing script is for Cygwin you could use the output of "uname" in the script to check whether MSYS or Cygwin is running. And again, you need to make sure Cygwin is not in your PATH while running MSYS.
 
Luke Dunstan
 
----- Original Message -----
From: Nicolay Giraldo
To: mingw-msys@lists.sourceforge.net
Sent: Monday, October 28, 2002 5:45 AM
Subject: [Mingw-msys] missing whoami.exe and dircolors.exe

By some reason when I load msys I got this message:
 
sh: whoami: command not found
[: nicolay: unary operator expected
[: =: unary operator expected
sh: dircolors: command not found
sh: complete: illegal option: -o
complete: usage: complete [-abcdefjkvu] [-pr] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
I've uninstalled and reinstalled and found no way to correct this in my own. A search in the archives gave me nothing too.
 
So, this should be a very strange problem.
 
Nicolay Giraldo