I developed Pcreole on pristine Puppy Wary 5.00, which uses bash 3:L18L wrote: Did you use bash? bash4 :?:
Code: Select all
# bash --version
GNU bash, version 3.00.16(1)-release (i486-t2-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
Though I've developed Pcreole using bash 3, I note from the bash 4.1 Reference at http://www.gnu.org/software/bash/manual/bashref.html
which suggests the -f (as in my provided Pcreole) is required. Without the -f after the command "export" (for bash functions), Pcreole would indeed, I feel, not find the functions such as run () or do_cmd ().Functions may be exported so that subshells automatically have them defined with the -f option to the export builtin (see Bourne Shell Builtins).
It would be certainly good to find a solution to your problem and hear if anyone else has a duplicate issue. Perhaps you could investigate exporting a simple function in your version of bash to find out how to do that? With that information, fingers crossed, I could probably easily alter Pcreole to suit your system.