{"thread":{"id":"37370","subject":"Cannot run cmd command lines from GIT bash","startedAt":"2014-08-18T11:07:46Z","lastAt":"2014-08-18T15:30:59Z","messageCount":3,"participants":["Dickson, Alex","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"247834","messageId":"E41D1E6BD9F1DF48877C833FE120496FDDE1D2FD@EU-MBX-04.mgc.mentorg.com","threadId":"37370","inReplyTo":null,"subject":"Cannot run cmd command lines from GIT bash","fromName":"Dickson, Alex","fromEmail":"alex_dickson@mentor.com","sentAt":"2014-08-18T11:07:46Z","receivedAt":"2014-08-18T11:07:46Z","isPatch":false,"sender":{"key":"alex_dickson@mentor.com","avatar":null},"body":"HI,\nI have just installed GIT from Git-1.9.4-preview20140815.exe having previously been using Git-1.9.2-preview20140411.exe I now\nfind that some scripts I have been using for some time are no longer working correctly.\n\nIt seems that now I cannot pass parameters through to a DOS  command e.g. \n    net user <username> /DOMAIN\n\nused to return full information about the user, now it just returns username not found, which is the behaviour\nif it is invoked without the /DOMAIN switch. I have seen similar with other commands, an even simpler example would be\n   cmd /c dir\n\nThis should run the DOS dir command, but all it does is invoke cmd.exe  interactively\n\nAlex Dickson, IESD, Mentor Graphics, Newbury, UK.\nphone:+44 1635 811429,        fax:+44 1635 810102\nmailto:alex_dickson@mentor.com, http://www.mentor.com\n"},{"id":"247838","messageId":"1193308472.195844.1408373013669.JavaMail.zimbra@dewire.com","threadId":"37370","inReplyTo":"E41D1E6BD9F1DF48877C833FE120496FDDE1D2FD@EU-MBX-04.mgc.mentorg.com","subject":"Re: Cannot run cmd command lines from GIT bash","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2014-08-18T14:43:33Z","receivedAt":"2014-08-18T14:43:33Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\n\n----- Ursprungligt meddelande -----\n> Från: \"Alex Dickson\" <alex_dickson@mentor.com>\n> Till: git@vger.kernel.org\n> Skickat: måndag, 18 aug 2014 13:07:46\n> Ämne: Cannot run cmd command lines from GIT bash\n> \n> HI,\n> I have just installed GIT from Git-1.9.4-preview20140815.exe having\n> previously been using Git-1.9.2-preview20140411.exe I now\n> find that some scripts I have been using for some time are no longer working\n> correctly.\n> \n> It seems that now I cannot pass parameters through to a DOS  command e.g.\n>     net user <username> /DOMAIN\n> \n> used to return full information about the user, now it just returns username\n> not found, which is the behaviour\n> if it is invoked without the /DOMAIN switch. I have seen similar with other\n> commands, an even simpler example would be\n>    cmd /c dir\n> \n> This should run the DOS dir command, but all it does is invoke cmd.exe\n>  interactively\n\nmsys translates anything that looks like a unix path. try doubling all initial\nslashes, i.e. cmd //c dir\n\nYou might have better luck with Windows specifie questions in one of the\nmsysgit forums than here.\n\n-- robin\n"},{"id":"247840","messageId":"E41D1E6BD9F1DF48877C833FE120496FDDE1D3FA@EU-MBX-04.mgc.mentorg.com","threadId":"37370","inReplyTo":"1193308472.195844.1408373013669.JavaMail.zimbra@dewire.com","subject":"RE: Cannot run cmd command lines from GIT bash","fromName":"Dickson, Alex","fromEmail":"alex_dickson@mentor.com","sentAt":"2014-08-18T15:30:59Z","receivedAt":"2014-08-18T15:30:59Z","isPatch":false,"sender":{"key":"alex_dickson@mentor.com","avatar":null},"body":"Thanks for your reply, I hadn't known that msys did translation of parameters with /.\nDoubling these up does make the commands work, but doesn’t explain why they used to work and now don't :(\n\nAlex Dickson, IESD, Mentor Graphics, Newbury, UK.\nphone:+44 1635 811429,        fax:+44 1635 810102\nmailto:alex_dickson@mentor.com, http://www.mentor.com\n\n-----Original Message-----\nFrom: Robin Rosenberg [mailto:robin.rosenberg.lists@dewire.com] \nSent: 18 August 2014 15:44\nTo: Dickson, Alex\nCc: git@vger.kernel.org\nSubject: Re: Cannot run cmd command lines from GIT bash\n\n\n\n----- Ursprungligt meddelande -----\n> Från: \"Alex Dickson\" <alex_dickson@mentor.com>\n> Till: git@vger.kernel.org\n> Skickat: måndag, 18 aug 2014 13:07:46\n> Ämne: Cannot run cmd command lines from GIT bash\n> \n> HI,\n> I have just installed GIT from Git-1.9.4-preview20140815.exe having\n> previously been using Git-1.9.2-preview20140411.exe I now\n> find that some scripts I have been using for some time are no longer working\n> correctly.\n> \n> It seems that now I cannot pass parameters through to a DOS  command e.g.\n>     net user <username> /DOMAIN\n> \n> used to return full information about the user, now it just returns username\n> not found, which is the behaviour\n> if it is invoked without the /DOMAIN switch. I have seen similar with other\n> commands, an even simpler example would be\n>    cmd /c dir\n> \n> This should run the DOS dir command, but all it does is invoke cmd.exe\n>  interactively\n\nmsys translates anything that looks like a unix path. try doubling all initial\nslashes, i.e. cmd //c dir\n\nYou might have better luck with Windows specifie questions in one of the\nmsysgit forums than here.\n\n-- robin\n"}]}