parallel: Test for bug #43967: Error if there exists a bin/zsh or bin/bash dir (with zsh or bash).

This commit is contained in:
Ole Tange 2015-01-18 22:09:30 +01:00
parent 38b214971e
commit 8c4f4c2b20
3 changed files with 9 additions and 1 deletions

View file

@ -953,7 +953,7 @@ sub parse_options {
sub init_globals { sub init_globals {
# Defaults: # Defaults:
$Global::version = 20150109; $Global::version = 20150115;
$Global::progname = 'parallel'; $Global::progname = 'parallel';
$Global::infinity = 2**31; $Global::infinity = 2**31;
$Global::debug = 0; $Global::debug = 0;

View file

@ -65,6 +65,10 @@ echo '### --header num --round-robin'
echo '### shebang-wrap' echo '### shebang-wrap'
$NICEPAR -k {} {} A B C ::: ./input-files/shebang/shebangwrap.*[^~] $NICEPAR -k {} {} A B C ::: ./input-files/shebang/shebangwrap.*[^~]
echo 'bug #43967: Error if there exists a bin/zsh or bin/bash dir (with zsh or bash).'
mkdir -p /tmp/bash$$/bash; PATH=/tmp/bash$$:$PATH parallel echo ::: OK; rm -rf /tmp/bash$$
EOF EOF
rm -rf tmp rm -rf tmp

View file

@ -179,3 +179,7 @@ C
A A
B B
C C
echo 'bug #43967: Error if there exists a bin/zsh or bin/bash dir (with zsh or bash).'
bug #43967: Error if there exists a bin/zsh or bin/bash dir (with zsh or bash).
mkdir -p /tmp/bash$$/bash; PATH=/tmp/bash$$:$PATH parallel echo ::: OK; rm -rf /tmp/bash$$
OK