D3620: tests: fix test-patch.t on picker /bin/sh implementations

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri May 25 09:02:06 EDT 2018


yuja added a comment.


  >   > Hmm, so we were hoping that whatever `sh` implementation was used would support a -d option and would not fail when it was given $PWD? That's a really odd assumption, so thanks for cleaning that up. Do other shells (than FreeBSD) support a -d option (bash and dash don't seem to)?
  >   
  >   It looks like bash accepts unknown flags if -c is in use, but BSD sh doesn't. Maybe dash works the same way? I'm too lazy to ssh to a Debian machine right now to find out.
  
  Yes, dash accepts them as the arguments passed to the command.
  
    % dash -c 'echo "$@"' -foo -bar -baz
    -bar -baz

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3620

To: durin42, #hg-reviewers, pulkit
Cc: yuja, martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list