bug-parallel
[Top][All Lists]
Advanced

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

$PARALLEL_HOME ignored if set but doesn't exist


From: Mateusz Okulus
Subject: $PARALLEL_HOME ignored if set but doesn't exist
Date: Tue, 3 Nov 2020 17:47:13 +0100

parallel doesn't use $PARALLEL_HOME when the variable is set but the
directory doesn't exist

Try:

rm -rf "$HOME/.parallel" "/tmp/parallel"
export PARALLEL_HOME="/tmp/parallel"
parallel echo ::: `seq 10` ::: `seq 10`
[ -d "$HOME/.parallel" ] && echo "WRONG: ~/.parallel was used"
[ -d /tmp/parallel ] || echo "WRONG: /tmp/parallel wasn't used"

Then try:

rm -rf "$HOME/.parallel" "/tmp/parallel"
export PARALLEL_HOME="/tmp/parallel"
mkdir -p "$PARALLEL_HOME" # added line
parallel echo ::: `seq 10` ::: `seq 10`
[ -d "$HOME/.parallel" ] && echo "WRONG: ~/.parallel was used"
[ -d /tmp/parallel ] || echo "WRONG: /tmp/parallel wasn't used"

If parallel creates ~/.parallel when it doen't exist I think it should
also create the directory when using $PARALLEL_HOME.

Regards,
mat

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]