Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Friday, September 21, 2007 - 11:54 pm

Junio, good day.

Fri, Sep 21, 2007 at 04:52:52PM -0700, Junio C Hamano wrote:

OK, you're right.  Especially if /bin/sh from Solaris and OpenBSD
are working and they are not Bash.  But I would not tell that
the shell is broken now -- I had not seen the POSIX specification.
Does it specifies how the shell should work in this case?


Did not understand the question, sorry.  The thing is that
FreeBSD has /bin/sh that is derived from the original Berkeley
shell.  And it is desirable to have it working with Git
script, since I don't want to make bash (or whatever shell
that is not /bin/sh) a dependency for the port.


OK, I think I need to find out why FreeBSD's /bin/sh behaves
like this, because the test you propose on your next message
works.  See below.

By the way, my FreeBSD is 7-CURRENT, but I'll test on 6-STABLE
and perhaps on 4-STABLE on Monday.

Fri, Sep 21, 2007 at 07:33:21PM -0700, Junio C Hamano wrote:

It says 'case returned ok', so I will try to understand why it
works here and does not work in the 'while' construct.

Thanks for the pointer!
-- 
Eygene
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Allow shell scripts to run with non-Bash /bin/sh, Eygene Ryabinkin, (Fri Sep 21, 5:43 pm)
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh, Junio C Hamano, (Fri Sep 21, 10:33 pm)
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh, Eygene Ryabinkin, (Fri Sep 21, 11:54 pm)
Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh, Eygene Ryabinkin, (Sun Sep 23, 4:31 am)