diff --git a/doc/release_new_version b/doc/release_new_version
index b4bab794..d31f5733 100644
--- a/doc/release_new_version
+++ b/doc/release_new_version
@@ -201,13 +201,15 @@ cc:Sandro Cazzaniga
in my_func baz
GNU Parallel can copy all defined variables and functions to the -remote system. It just need to record which ones to ignore in +remote system. It just needs to record which ones to ignore in ~/.parallel/ignored_vars. Do that by running this once:
parallel --record-env @@ -1413,7 +1413,8 @@ line. 140000 140000 980000 140000 140000 980000 20000 20000 140001-
Notice that the last jobs could not get the full 140000 lines.
+Notice that the last job could not get the full 140000 lines, but only +20000 lines.
If a record is 75 lines -L can be used:
cat num1000000 | parallel --pipe -L75 wcdiff --git a/src/parallel_tutorial.pdf b/src/parallel_tutorial.pdf index cf0a1154..ca22a4ce 100644 Binary files a/src/parallel_tutorial.pdf and b/src/parallel_tutorial.pdf differ diff --git a/src/parallel_tutorial.pod b/src/parallel_tutorial.pod index 99f69b86..b4c0bcf7 100644 --- a/src/parallel_tutorial.pod +++ b/src/parallel_tutorial.pod @@ -1373,7 +1373,7 @@ Output: in my_func baz GNU Parallel can copy all defined variables and functions to the -remote system. It just need to record which ones to ignore in +remote system. It just needs to record which ones to ignore in ~/.parallel/ignored_vars. Do that by running this once: parallel --record-env @@ -1515,7 +1515,8 @@ Output (the order may be different): 140000 140000 980000 20000 20000 140001 -Notice that the last jobs could not get the full 140000 lines. +Notice that the last job could not get the full 140000 lines, but only +20000 lines. If a record is 75 lines -L can be used: diff --git a/testsuite/tests-to-run/parallel-local-ssh2.sh b/testsuite/tests-to-run/parallel-local-ssh2.sh index d7fd4e3d..8f685635 100644 --- a/testsuite/tests-to-run/parallel-local-ssh2.sh +++ b/testsuite/tests-to-run/parallel-local-ssh2.sh @@ -4,4 +4,10 @@ cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | stdout paral echo '### --filter-hosts --slf <()' parallel --nonall --filter-hosts --slf <(echo localhost) echo OK +echo '### --wd no-such-dir' + stdout parallel --wd /no-such-dir -S csh@localhost echo ::: 1; echo Exit code $? + stdout parallel --wd /no-such-dir -S tcsh@localhost echo ::: 1; echo Exit code $? + stdout parallel --wd /no-such-dir -S parallel@localhost echo ::: 1; echo Exit code $? + + EOF diff --git a/testsuite/wanted-results/parallel-local-ssh2 b/testsuite/wanted-results/parallel-local-ssh2 index 9c898686..802942e2 100644 --- a/testsuite/wanted-results/parallel-local-ssh2 +++ b/testsuite/wanted-results/parallel-local-ssh2 @@ -1,2 +1,15 @@ ### --filter-hosts --slf <() OK +### --wd no-such-dir +mkdir: cannot create directory ‘/no-such-dir’: Permission denied +bash: line 0: cd: /no-such-dir: No such file or directory +parallel: Error: cannot cd to /no-such-dir +Exit code 1 +mkdir: cannot create directory ‘/no-such-dir’: Permission denied +bash: line 0: cd: /no-such-dir: No such file or directory +parallel: Error: cannot cd to /no-such-dir +Exit code 1 +mkdir: cannot create directory ‘/no-such-dir’: Permission denied +bash: line 0: cd: /no-such-dir: No such file or directory +parallel: Error: cannot cd to /no-such-dir +Exit code 1