parallel
[Top][All Lists]
Advanced

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

Re: zsh problem: exporting a function within a bash script for parallel


From: Martin Møller Skarbiniks Pedersen
Subject: Re: zsh problem: exporting a function within a bash script for parallel to use
Date: Sat, 24 Nov 2012 18:48:54 +0100

On 24 November 2012 17:50, John <da_audiophile@yahoo.com> wrote:
> Here is a simplified bash script.  The goal is to get parallel to run the 
> 'work' function from within the script.  Per the man page, one needs to 
> `export -f FUNCTION` for this functionality, but I get the following error 
> when I try running it from zsh.  If I run it from a bash shell, everything 
> works as expected.
>
> % ./test target
> zsh:1: command not found: work
>
>
> ###BEGIN SCRIPT
>
> #!/bin/bash
> word="$1"

[...]

is the very first line in your script
#!/bin/bash or "###BEGIN SCRIPT" ?

#!/bin/bash
must be on the very first line.

Regards
Martin



reply via email to

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