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

AW: Challenge with Git-Bash

From
RLRainer Lauer <lauerr@gmx.net>
Date
Jul 18, 2010, 17:02 UTC
Message-ID
<007f01cb269b$0015dbd0$00419370$@gmx.net>
In-Reply-To
<AANLkTinODbTbZ7CXaAxs83T_pdyvafWnjSI8kzjcWAXN@mail.gmail.com>

Hi, from Jonathan Nieder <jrnieder@gmail.com> I got a successfully work-around. See attached mail. Thanks for your support and amazingly fast response.

Regis, Rainer Lauer

-----Ursprüngliche Nachricht-----
Von: Ævar Arnfjörð Bjarmason [mailto:avarab@gmail.com] 
Gesendet: Sonntag, 18. Juli 2010 16:56
An: Rainer Lauer
Cc: Git Mailing List
Betreff: Re: Challenge with Git-Bash
On Sun, Jul 18, 2010 at 14:42, Rainer Lauer <lauerr@gmx.net> wrote:
> Hi,
> thanks for the reply. I did set the full path to my editor of choice.
Good that it worked out. CC-ing the list so that others encountering this problem will find the solution.
(+cc: msysgit)
Hi Rainer,
Rainer Lauer wrote:
Show 17 quoted lines
> with my Windows 7 Git-Installation I get following challenge:
>
> 1)	Set GIT_EDITOR to editor of your choice
>
> 2)	With Windows7 let this editor run in admin-mode
> 	Goto .exe-file -> right mouse-click -> compatibility -> run program
>	as admin (I'm running a German version maybe English names are slightly
>	different)
>
> 3)	Make a git action like git add file
>	                       git commit
> 	from the git bash.
>
> 4)	Now following message appears:  sh.exe: ./"editor of your choice":
> Bad file number
>
> Everything is fine without Admin-Mode set for editor.

Apparently “Bad file number” can mean “Permission denied” among other things on Windows. I do not have any better suggestion than to try running git bash as administrator too, sorry.

Regards, Jonathan

Previous: Ævar Arnfjörð Bjarmason
Message 9 of 9 in “Challenge with Git-Bash”
  1. Rainer LauerJul 17, 2010
  2. Ævar Arnfjörð BjarmasonJul 17, 2010
  3. Jonathan NiederJul 17, 2010
  4. AW: Challenge with Git-BashRainer Lauer, Jul 18, 2010
  5. Ævar Arnfjörð BjarmasonJul 18, 2010
  6. Files used by git config (Re: Challenge with Git-Bash)Jonathan Nieder, Jul 18, 2010
  7. Eric RaibleJul 19, 2010
  8. Ævar Arnfjörð BjarmasonJul 18, 2010
  9. AW: Challenge with Git-BashRainer Lauer, Jul 18, 2010

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.