Re: [PATCH 12/10] support pager.* for external commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 19, 2011 at 00:01, Jeff King <peff@xxxxxxxx> wrote:

> +test_expect_success TTY 'command-specific pager works for external commands' '
> +       sane_unset PAGER GIT_PAGER &&
> +       echo "foo:initial" >expect &&
> +       >actual &&
> +       test_config pager.external "sed s/^/foo:/ >actual" &&
> +       test_terminal git --exec-path="`pwd`" external log --format=%s -1 &&
> +       test_cmp expect actual

For reasons that I haven't looked into using sed like that breaks
under /usr/bin/ksh on Solaris. Just using:

    sed -e \"s/^/foo:/\"

Instead fixes it, it's not broken with /usr/xpg4/bin/sh, so it's some
ksh peculiarity.

The error it gives is:

    sed s/^/foo:/ >actual: Not found

Indicating that for some reason it's considering that whole "sed
s/^/foo:/ >actual" string to be a single command.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]