Why can't functions with / in the function names be exported?
From:
Peng Yu
Subject:
Why can't functions with / in the function names be exported?
Date:
Fri, 24 May 2024 22:06:24 -0500
Hi,
The following example shows that if a function name contains /, then
the function can not be exported. Why is it so? Where does this
limitation come from?
$ function f { true; }
$ export -f f
$ function f/g { true; }
$ export -f f/g
-bash: export: f/g: cannot export
--
Regards,
Peng
[Prev in Thread]
Current Thread
[Next in Thread]
Why can't functions with / in the function names be exported?,
Peng Yu<=