help-bash
[Top][All Lists]
Advanced

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

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



reply via email to

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