git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Cannot run cmd command lines from GIT bash

From
DADickson, Alex <alex_dickson@mentor.com>
Date
Aug 18, 2014, 11:07 UTC
Message-ID
<E41D1E6BD9F1DF48877C833FE120496FDDE1D2FD@EU-MBX-04.mgc.mentorg.com>

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

Next: Robin Rosenberg
Message 1 of 3 in “Cannot run cmd command lines from GIT bash”
  1. Dickson, AlexAug 18, 2014
  2. Robin RosenbergAug 18, 2014
  3. Dickson, AlexAug 18, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.