From: Junio C Hamano <junkio@cox.net>
To: "Peter Eriksen" <s022018@student.dtu.dk>
Cc: git@vger.kernel.org
Subject: Re: /bin/sh portability question
Date: Sat, 24 Sep 2005 14:31:15 -0700 [thread overview]
Message-ID: <7vll1mup98.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20050924195029.GA20514@bohr.gbar.dtu.dk> (Peter Eriksen's message of "Sat, 24 Sep 2005 21:50:29 +0200")
"Peter Eriksen" <s022018@student.dtu.dk> writes:
> Here are some small problems to begin with.
Thanks. Next time, please format your patch according to
Documentation/SubmittingPatches. Your MUA ate tabs and leading
whitespaces from the diff, and you lack Signed-off-by line.
I think you need to pass down SHELL_PATH, and prepare for people
running 'make' by hand in t/ directory.
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -252,7 +252,7 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
gitk
-export TAR INSTALL DESTDIR
+export TAR INSTALL DESTDIR SHELL_PATH
### Build rules
all: $(PROGRAMS) $(SCRIPTS)
diff --git a/t/Makefile b/t/Makefile
--- a/t/Makefile
+++ b/t/Makefile
@@ -4,8 +4,9 @@
#
#GIT_TEST_OPTS=--verbose --debug
+SHELL_PATH ?= $(SHELL)
BTW, do you have access to a Linux machine to play with? It
would have caught this fairly easily.
Test of 'tar' timestamp would also fail if you do not use
'gtar', but as far as I know that test is the only place we
really rely on 'tar', so it may not be worth fixing.
'xargs -0' and 'find -print0' is really essential in some of the
git barebone scripts. I think the one in git-reset can go, by
unlinking in the Perl script instead of printing the name and
running "xargs -0 rm -f --" on it.
The one in git-commit I am not sure about. We do want to make
it really generic and keep allowing LF in paths. Maybe we would
want 'git-update-index --stdin [-z]' to read list of paths from
the standard input.
The one in git-grep I would not worry too much about; we should
rewrite the whole thing in Perl and the problem will disappear.
next prev parent reply other threads:[~2005-09-24 21:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 7:50 /bin/sh portability question Peter Eriksen
2005-09-23 8:24 ` Junio C Hamano
[not found] ` <54643.10.10.10.28.1127466177.squirrel@linux1>
2005-09-23 9:02 ` Sean
2005-09-23 9:19 ` Junio C Hamano
[not found] ` <39450.10.10.10.28.1127471685.squirrel@linux1>
2005-09-23 10:34 ` Sean
2005-09-25 19:26 ` Nico -telmich- Schottelius
[not found] ` <33541.10.10.10.28.1127677005.squirrel@linux1>
2005-09-25 19:36 ` Sean
2005-09-23 9:07 ` Junio C Hamano
2005-09-23 12:17 ` Peter Eriksen
2005-09-24 1:13 ` Junio C Hamano
[not found] ` <20050924195029.GA20514@bohr.gbar.dtu.dk>
2005-09-24 21:31 ` Junio C Hamano [this message]
2005-09-24 17:35 ` Patrick Mauritz
2005-09-23 19:48 ` H. Peter Anvin
2005-09-23 19:55 ` Morten Welinder
2005-09-23 19:57 ` Joel Becker
2005-09-23 20:00 ` H. Peter Anvin
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=7vll1mup98.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=s022018@student.dtu.dk \
/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 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).