|
From: | John |
Subject: | Re: zsh problem: exporting a function within a bash script for parallel to use |
Date: | Sat, 24 Nov 2012 10:20:48 -0800 (PST) |
> is the very first line in your script > #!/bin/bash or "###BEGIN SCRIPT" ? > > #!/bin/bash > must be on the very first line. I confused you. The script does not have ### lines in it at all. I inserted them to take to make it clear that it was code. Here is the script which does indeed start with the shebang: #!/bin/bash word="$1" export word work() { tar zcf $word.tar.gz $word } export -f work echo $word | parallel work
[Prev in Thread] | Current Thread | [Next in Thread] |