ilivit / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

path problems #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.execute mkpasswd -d >/etc/passwd
2. run mvn clean install
3.

What is the expected output? What do you see instead?
What happens is that mvn looks for paths \\netserv where as is I do not run
the mkpasswd command the paths start u:

What version of the product are you using? On what operating system?
MinTTY 0.3.8 and Windows XP professional

Please provide any additional information below.
Basically when I mkpasswd I get the nice formatting for the window (lists
path  and bolding, etc). However when I run mvn 9maven fron the command
line the paths appear as network paths and the mvn command will break. If I
do not have a passwd file then the mvn command works, but my window is
plain. Others on my team do not appear to have this problem, but we have
not found the cause. Not sure if it is a defect so much as a setting that
we haven't found. Thanks.

Original issue reported on code.google.com by timpi...@gmail.com on 12 Feb 2010 at 3:10

GoogleCodeExporter commented 9 years ago
I'm afraid your report isn't sufficiently clear and doesn't contain enough 
detail to 
reproduce the issue. I struggle to see the connection between /etc/passwd, path 
types, and formatting.

Running non-Cygwin programs such as Java or Maven in a Cygwin environment is 
often 
problematic though. See issue 56 for one example. But what makes you think that 
this 
issue is mintty-specific? Do you get different results in the Cygwin console or 
rxvt? 
With a better problem description, you might get more help on the Cygwin or 
Maven 
User mailing lists.

Original comment by andy.koppe on 12 Feb 2010 at 6:52

GoogleCodeExporter commented 9 years ago
I understand. That is the situation. I explaimned the situation exactly as it
appears. I am at a loss. I submitted the problem because I also saw no 
connection
between the /etc/passwd and the path, but though maybe a Mintty person would.
Neverthe less, the fact remains that if there is no /etc/passwd the programs 
use u:
as the root and \\netserv if the /etc/passwd exists. I have looked for other 
things,
but found nothing. I do not know where Mintty gets the path to pass. I wish i 
could
give you more information, but that is all there is. I did not expect someone 
to know
this answer off the top of their head. I was hoping someone could tell me what 
to
look at as I have looked at all files I could think of. Thanks anyway.

Original comment by timpi...@gmail.com on 12 Feb 2010 at 7:26

GoogleCodeExporter commented 9 years ago
> I do not know where Mintty gets the path to pass.

What path are you talking about? You're speaking in riddles here. And why 
wouldn't 
there be an /etc/passwd anyway? It's part of the Cygwin base install.

Mintty is just a terminal: it sends keyboard input to programs running inside 
it and 
displays output coming back from them. The program responsible for executing 
commands 
and passing arguments is the "shell". In Cygwin, that's usually "bash", so 
maybe the 
bash manual can help you. And perhaps this bit from the mintty manual is of 
interest:

       If a program name is supplied on [mintty's] command line, this is executed
       with any additional arguments given.  Otherwise, mintty looks for a
       shell to execute in the SHELL environment variable.  If that is not
       set, it reads the user’s default shell setting from /etc/passwd.  As a
       last resort, it falls back to /bin/sh.

As I said, one thing you can do is try whatever you're having trouble with in 
the 
Cygwin console and in rxvt. The fact that an issue appears when running in 
mintty 
does not mean that this is a mintty issue.

Original comment by andy.koppe on 12 Feb 2010 at 7:50