On 11/11/2012 12:11 AM, Felipe Contreras wrote:
> On Sat, Nov 10, 2012 at 11:39 PM, Junio C Hamano <gits...@pobox.com> wrote:
>> Felipe Contreras <felipe.contre...@gmail.com> writes:
>>> On Sat, Nov 10, 2012 at 3:37 PM, Torsten Bögershausen <tbo...@web.de> wrote:
>>>> The short version:
>>>> echo -n doesn't seem to be portable.
>>>> The following works for me:
>>> Right, I was supposed to change that to:
>>>   true > marks-cur &&
>> Please make it like so:
>>         >marks-cur &&
>> No command is necessary when creating an empty file or truncating an
>> existing file to empty, and no SP between redirection and its target.
> That hangs on zsh (presumably waiting for stdin).
Unless you set:


early in your test script.

Or, to be extra-safe, you could steal this initialization code from

    # Be more Bourne compatible.
    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
      emulate sh
      setopt NO_GLOB_SUBST
      # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
      # is contrary to our usage.  Disable this feature.
      alias -g '${1+"$@"}'='"$@"'
      case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac

All of this untested with the real Git testsuite, of course ;-)

Regards, and HTH,
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to