From: Johannes Schindelin Date: Fri, 07 Jan 2011 01:17:19 GMT Subject: Re: [msysGit] [PATCH/RFC] alias: use run_command api to execute aliases Message-ID: In-Reply-To: <1294341187-3956-1-git-send-email-kusmabite@gmail.com> Hi, On Thu, 6 Jan 2011, Erik Faye-Lund wrote: > On Windows, system() executes with cmd.exe instead of /bin/sh. This > means that aliases currently has to be batch-scripts instead of > bourne-scripts. On top of that, cmd.exe does not handle single quotes, > which is what the code-path currently uses to handle arguments with > spaces. > > To solve both problems in one go, use run_command_v_opt() to execute > the alias. It already does the right thing prepend "sh -c " to the > alias. Would this not break setups where aliases were defined to execute batch scripts? If this is true, I'm of two minds here. Ciao, Dscho