portable_fork does not escape shell meta characters (Unix)
Created originally on Bitbucket by yuja (Yuya Nishihara)
Probably because it uses undocumented subprocess.list2cmdline()
function designed for Windows, command-line parameters are not escaped correctly for POSIX shell.
% thg email 'outgoing()'
/bin/sh: 1: Syntax error: "(" unexpected
% thg email 'outgoing()' --nofork
# works
- Mercurial version (2.9.2+80-12f161f08d74). TortoiseHg version (2.11.2+19-fa1745ba15b5)
- Python version: 2.7.6 (default, Mar 22 2014, 15:40:47) [GCC 4.8.2]
- System: Linux gimlet 3.13-1-amd64 #1 (closed) SMP Debian 3.13.7-1 (2014-03-25) x86_64
- Qt-4.8.6 PyQt-4.10.3 QScintilla-2.8.1