From: SourceForge.net <no...@so...> - 2009-08-04 03:08:32
|
Bugs item #2831790, was opened at 2009-08-03 20:08 Message generated for change (Tracker Item Submitted) made by bfoz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2831790&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Brandon Fosdick (bfoz) Assigned to: Nobody/Anonymous (nobody) Summary: bash mangles command line arguments Initial Comment: To reproduce: 1. Make a test program (see below) that echos its command line arguments 2. Open a bash window (I'm using Git Bash) and run 'testme /ABCDEF/' Output... $ ./testme /ABCDEF/ arg: c:\Documents and Settings\bfosdick\My Documents\devel\testme.exe arg: C:/Program Files/Git/ABCDEF/ The last line of output shouldn't have a path in it. Adding various levels of quoting/escaping doesn't change anything. Although '//ABCDEF/' doesn't get mangled. test code: int main(int argc, char* argv[]) { for(unsigned i=0; i<argc; ++i) printf("arg: %s\n", argv[i]); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2831790&group_id=2435 |