[plug] Bash scripting error with functions
Onno Benschop
onno at itmaze.com.au
Sun Jun 12 20:23:40 WST 2005
Cameron Patrick wrote:
>Craig Ringer wrote:
>
>
>
>>Functions don't seem to be inherited. Chances are that xargs uses a
>>subshell, or just looks for the command directly, and it won't be able
>>to call `make_file_link' from the parent process (shell).
>>
>>
>
>Use the source, Luke :-P
>
>It uses fork() and execvp(), so it'd be looking for the binary in the
>path itself.
>
>
So, apart from creating another separate script, how should I solve this?
I suppose I could rewrite the script to have two "modes", but that is
pretty evil.
--
Onno Benschop
Connected via Optus B3 at S34°45'36.5" - E139°00'08.7" (Mount Pleasant, SA)
--
()/)/)() ..ASCII for Onno..
|>>? ..EBCDIC for Onno..
--- -. -. --- ..Morse for Onno..
Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - onno at itmaze.com.au
More information about the plug
mailing list