git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove shell dependency in env.c
@ 2005-09-15  5:50 H. Peter Anvin
  2005-09-15  7:58 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: H. Peter Anvin @ 2005-09-15  5:50 UTC (permalink / raw)
  To: Git Mailing List, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 152 bytes --]

This patch adds an invocation of "env", so rsh.c works for C-shell users 
as well as Bourne shell users.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

[-- Attachment #2: rsh-use-env.patch --]
[-- Type: text/x-patch, Size: 797 bytes --]

Explicitly invoke "env" so it doesn't depend on a specific shell.

---
commit 642840f61656059dc3929e7c3af9db7f6e251fa3
tree d8d77e8643efd7c70b834e02382bb694252b8b2d
parent 19397b4521bcc27eb224413fb71519223b94290f
author H. Peter Anvin <hpa@smyrno.hos.anvin.org> Wed, 14 Sep 2005 22:24:37 -0700
committer H. Peter Anvin <hpa@smyrno.hos.anvin.org> Wed, 14 Sep 2005 22:24:37 -0700

 rsh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rsh.c b/rsh.c
--- a/rsh.c
+++ b/rsh.c
@@ -39,7 +39,7 @@ int setup_connection(int *fd_in, int *fd
 	}
 	/* ssh <host> 'cd <path>; stdio-pull <arg...> <commit-id>' */
 	snprintf(command, COMMAND_SIZE, 
-		 "%s='%s' %s",
+		 "env %s='%s' %s",
 		 GIT_DIR_ENVIRONMENT, path, remote_prog);
 	*path = '\0';
 	posn = command + strlen(command);

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-09-16 19:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-15  5:50 [PATCH] Remove shell dependency in env.c H. Peter Anvin
2005-09-15  7:58 ` Junio C Hamano
2005-09-15 16:30   ` H. Peter Anvin
2005-09-15 18:44   ` Shell quoting H. Peter Anvin
2005-09-15 19:01     ` Linus Torvalds
2005-09-15 19:31       ` H. Peter Anvin
2005-09-15 19:50         ` Junio C Hamano
2005-09-15 20:18           ` H. Peter Anvin
2005-09-15 19:35       ` Junio C Hamano
2005-09-15 20:02         ` Linus Torvalds
2005-09-16 19:20       ` Junio C Hamano
2005-09-15 19:33     ` [PATCH] rsh.c env and quoting cleanup, take 2 H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).