Strange interpretation of windows/linux path

47 views
Skip to first unread message

gco dev

unread,
Aug 31, 2011, 12:06:49 PM8/31/11
to mintty
Hi Everyone,

I tried MinTTY with cygwin today.
All seems okay except these points:

1- All files are listed with "ls", and also, all name are cut, and
automatically set in upper case.

>> ls
: R H S V D A N : N O M : DATE : HEURE : TAILLE :
OCCUPAT. :

: : BASHRC~1 : 27/06/111 : 11:50 : 5708 :
65024 :
: : BASH_A~1 : 20/07/111 : 15:06 : 1195 :
65024 :
: : BASH_H~1 : 31/08/111 : 17:04 : 1960 :
65024 :
: : BASH_P~1 : 23/06/111 : 10:32 : 1166 :
65024 :

(With Cygwin, these files are not printed without option -a)

2- If I want to copy one of these file:

>> cp .bash_aliases /home/user/aliases.bak
CP - Erreur, le repertoire \HOME\USER\ALIASES.BAK n'existe pas.
CP - Erreur C:\CYGWIN\HOME\USER\.BAS n'existe pas.

I think there is a problem with windows path/linux path (slash
backslash)
Is there any configuration that I skipped ?

Thanks in advance and thanks for your work ;),
BR

Guillaume

Kevin Calman

unread,
Aug 31, 2011, 4:14:53 PM8/31/11
to mintty-...@googlegroups.com
I think its safe to say that these are not MinTTY issues, but shell issues. It would appear that you are executing cmd.exe rather than bash. Did you install MinTTY as part of the CygWin installation, or stand-alone?


--
You received this message because you are subscribed to the Google Groups "mintty" group.
To post to this group, send email to mintty-...@googlegroups.com.
To unsubscribe from this group, send email to mintty-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mintty-discuss?hl=en.




--
Opinions herein are exclusively my own, unless you share them.
Kevin Calman, Austin, TX, US

gco dev

unread,
Sep 1, 2011, 4:06:06 AM9/1/11
to mintty
Hi and Thanks,

MinTTY installation was done in stand alone.
I set the .exe under "cygwin/bin" and I changed my cygwin path from
"cygwin/Cygwin.bat" to "cygwin/bin/mintty.exe".

After your post I did the installation with cygwin setup and selected
MinTTY package,
Now I have a new shortcut under cygwin in my start menu: "cygwin bash
shell" and "mintty"
Mintty link is set to "cygwin\bin\mintty.exe -". If I run mintty from
this link, all is right.

The only difference with my previous install is the "-" after mintty
link: "mintty.exe -"

What's this option ?

Chris Sutcliffe

unread,
Sep 1, 2011, 6:50:08 AM9/1/11
to mintty-...@googlegroups.com
On 1 September 2011 04:06, gco dev wrote:
> The only difference with my previous install is the "-" after mintty
> link: "mintty.exe -"
>
> What's this option ?

From the mintty manpage:

If a single dash is specified instead of a program name, the shell is
invoked as a login shell.

Chris

--
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

Kevin Calman

unread,
Sep 1, 2011, 11:43:01 AM9/1/11
to mintty-...@googlegroups.com
From the MinTTY man page ("man mintty" on a bash prompt):
INVOCATION
       If a program name is supplied on the 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.  If a single

       dash is specified instead of a program name, the shell is invoked as a login shell.
See "man login" for further explanation of what a "login shell" implies.

gco dev

unread,
Sep 2, 2011, 8:30:40 AM9/2/11
to mintty
Okay Thanks for these reply,
All is right with my new terminal :)

I need to take a look on "login shell" to understand the subtlety.

Have a nice day

On 1 sep, 17:43, Kevin Calman <code...@gmail.com> wrote:
> From the MinTTY man page ("man mintty" on a bash prompt):
> INVOCATION
>        If a program name is supplied on the 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.  *If a single
>        dash is specified instead of a program name, the shell is invoked as
> a login shell.
> *
> See "man login" for further explanation of what a "login shell" implies.
> *
> *
Reply all
Reply to author
Forward
0 new messages