* Cannot run cmd command lines from GIT bash
@ 2014-08-18 11:07 Dickson, Alex
2014-08-18 14:43 ` Robin Rosenberg
0 siblings, 1 reply; 3+ messages in thread
From: Dickson, Alex @ 2014-08-18 11:07 UTC (permalink / raw)
To: git@vger.kernel.org
HI,
I have just installed GIT from Git-1.9.4-preview20140815.exe having previously been using Git-1.9.2-preview20140411.exe I now
find that some scripts I have been using for some time are no longer working correctly.
It seems that now I cannot pass parameters through to a DOS command e.g.
net user <username> /DOMAIN
used to return full information about the user, now it just returns username not found, which is the behaviour
if it is invoked without the /DOMAIN switch. I have seen similar with other commands, an even simpler example would be
cmd /c dir
This should run the DOS dir command, but all it does is invoke cmd.exe interactively
Alex Dickson, IESD, Mentor Graphics, Newbury, UK.
phone:+44 1635 811429, fax:+44 1635 810102
mailto:alex_dickson@mentor.com, http://www.mentor.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot run cmd command lines from GIT bash
2014-08-18 11:07 Cannot run cmd command lines from GIT bash Dickson, Alex
@ 2014-08-18 14:43 ` Robin Rosenberg
2014-08-18 15:30 ` Dickson, Alex
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2014-08-18 14:43 UTC (permalink / raw)
To: Alex Dickson; +Cc: git
----- Ursprungligt meddelande -----
> Från: "Alex Dickson" <alex_dickson@mentor.com>
> Till: git@vger.kernel.org
> Skickat: måndag, 18 aug 2014 13:07:46
> Ämne: Cannot run cmd command lines from GIT bash
>
> HI,
> I have just installed GIT from Git-1.9.4-preview20140815.exe having
> previously been using Git-1.9.2-preview20140411.exe I now
> find that some scripts I have been using for some time are no longer working
> correctly.
>
> It seems that now I cannot pass parameters through to a DOS command e.g.
> net user <username> /DOMAIN
>
> used to return full information about the user, now it just returns username
> not found, which is the behaviour
> if it is invoked without the /DOMAIN switch. I have seen similar with other
> commands, an even simpler example would be
> cmd /c dir
>
> This should run the DOS dir command, but all it does is invoke cmd.exe
> interactively
msys translates anything that looks like a unix path. try doubling all initial
slashes, i.e. cmd //c dir
You might have better luck with Windows specifie questions in one of the
msysgit forums than here.
-- robin
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Cannot run cmd command lines from GIT bash
2014-08-18 14:43 ` Robin Rosenberg
@ 2014-08-18 15:30 ` Dickson, Alex
0 siblings, 0 replies; 3+ messages in thread
From: Dickson, Alex @ 2014-08-18 15:30 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git@vger.kernel.org
Thanks for your reply, I hadn't known that msys did translation of parameters with /.
Doubling these up does make the commands work, but doesn’t explain why they used to work and now don't :(
Alex Dickson, IESD, Mentor Graphics, Newbury, UK.
phone:+44 1635 811429, fax:+44 1635 810102
mailto:alex_dickson@mentor.com, http://www.mentor.com
-----Original Message-----
From: Robin Rosenberg [mailto:robin.rosenberg.lists@dewire.com]
Sent: 18 August 2014 15:44
To: Dickson, Alex
Cc: git@vger.kernel.org
Subject: Re: Cannot run cmd command lines from GIT bash
----- Ursprungligt meddelande -----
> Från: "Alex Dickson" <alex_dickson@mentor.com>
> Till: git@vger.kernel.org
> Skickat: måndag, 18 aug 2014 13:07:46
> Ämne: Cannot run cmd command lines from GIT bash
>
> HI,
> I have just installed GIT from Git-1.9.4-preview20140815.exe having
> previously been using Git-1.9.2-preview20140411.exe I now
> find that some scripts I have been using for some time are no longer working
> correctly.
>
> It seems that now I cannot pass parameters through to a DOS command e.g.
> net user <username> /DOMAIN
>
> used to return full information about the user, now it just returns username
> not found, which is the behaviour
> if it is invoked without the /DOMAIN switch. I have seen similar with other
> commands, an even simpler example would be
> cmd /c dir
>
> This should run the DOS dir command, but all it does is invoke cmd.exe
> interactively
msys translates anything that looks like a unix path. try doubling all initial
slashes, i.e. cmd //c dir
You might have better luck with Windows specifie questions in one of the
msysgit forums than here.
-- robin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-18 15:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 11:07 Cannot run cmd command lines from GIT bash Dickson, Alex
2014-08-18 14:43 ` Robin Rosenberg
2014-08-18 15:30 ` Dickson, Alex
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox