[Bug 6429] New: hardcoded path to bash in test-transaction-rollback-on-sigpipe

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Nov 9 12:38:40 UTC 2020


https://bz.mercurial-scm.org/show_bug.cgi?id=6429

            Bug ID: 6429
           Summary: hardcoded path to bash in
                    test-transaction-rollback-on-sigpipe
           Product: Mercurial
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: tk at giga.or.at
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

test-transaction-rollback-on-sigpipe hardcodes /bin/bash in three shell
scripts.

bash is not always at that location.

I tried switching to /bin/sh but on NetBSD that doesn't work with:
remote: $TESTTMP/remotecmd.sh: 2: Syntax error: redirection unexpected

I think it's the ">($killable_pid)" in the second script. Can this be replaced
in a more portable way?

So I installed bash instead and change the three "/bin/bash" to "/usr/bin/env
bash" instead, which worked for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list