All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Sixt <J.Sixt@eudaptics.com>
To: git@vger.kernel.org
Subject: Re: MinGW binary installer available
Date: Thu, 08 Feb 2007 09:09:14 +0100	[thread overview]
Message-ID: <45CADAAA.74058D21@eudaptics.com> (raw)
In-Reply-To: 45C9EB54.3040406@xs4all.nl

Han-Wen Nienhuys wrote:
> Indeed: for now, this is intended for people clueful enough to install
> bash and perl on their own.  Adding bash itself should be easy, but
> I have no idea how to make cmd open the scripts with bash automatically.

I've thought about renaming git-commit to git-commit.cmd and add this
preamble:

@echo off
rem () { :; } ; : \
sh %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
rem ; : \
exit /B %ERRORLEVEL%


in place of the usual "#!/bin/sh". It requires you to have a command
named @echo.exe in the path that is a noop. Also, it is limited to 9
command line arguments.

What a hack! (*)

-- Hannes

(*) Here's how it works:
- cmd.exe will ignore all but the sh and exit lines, effectively
invoking the script under bash and exiting with bash's exit code.
- Bash will execute @echo, define a function named rem, ignore the sh
and exit lines because they are continuations of the : noop on the
previous line. It will also run the second rem, but it is a noop, too.

  parent reply	other threads:[~2007-02-08  8:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-07 14:38 MinGW binary installer available Han-Wen Nienhuys
2007-02-07 14:55 ` Johannes Schindelin
2007-02-07 15:05   ` Johannes Schindelin
2007-02-07 15:14     ` Han-Wen Nienhuys
2007-02-08  8:09     ` Johannes Sixt
2007-02-07 15:08   ` Han-Wen Nienhuys
2007-02-07 15:26     ` Johannes Schindelin
2007-02-07 15:34       ` Han-Wen Nienhuys
2007-02-07 16:16         ` Johannes Schindelin
2007-02-07 17:05           ` Han-Wen Nienhuys
2007-02-07 17:10             ` Johannes Schindelin
2007-02-07 17:35               ` Han-Wen Nienhuys
2007-02-07 21:10     ` Han-Wen Nienhuys
2007-02-08  8:12       ` Johannes Sixt
2007-02-08  8:09     ` Johannes Sixt [this message]
2007-02-08 10:14       ` Han-Wen Nienhuys
2007-02-08 21:15       ` Robin Rosenberg
2007-02-08 21:18         ` Johannes Schindelin
2007-02-08 21:22           ` Shawn O. Pearce
2007-02-08 21:26             ` Johannes Schindelin
2007-02-07 16:03   ` Han-Wen Nienhuys
2007-02-07 20:18     ` Jan Nieuwenhuizen
2007-02-07 21:21   ` Han-Wen Nienhuys
2007-02-07 23:51     ` Johannes Schindelin
2007-02-07 22:10   ` Han-Wen Nienhuys
2007-02-07 23:52     ` Johannes Schindelin
2007-02-08 19:58       ` Jan Nieuwenhuizen
2007-02-08 20:08         ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45CADAAA.74058D21@eudaptics.com \
    --to=j.sixt@eudaptics.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.