Article 5FWY0 bash question w/ nested function definitions

bash question w/ nested function definitions

by
__John_L.
from LinuxQuestions.org on (#5FWY0)
I've created some function definitions thusly:

dfn.sh
Code: set -a
fcn1 () {
echo #1
}
fcn2 () {
echo #2
}
fcn3 () {
echo #3
}Then I issue:

main.sh
Code: . ./dfn.sh & wait $!
fcn1 | fcn2 | fcn3but I get "fcnx : command not found."

Thanks in advance for any insight you can provide.latest?d=yIl2AUoC8zA latest?i=Il5m0y_WjgU:mfu9yTZWpvc:F7zBnMy latest?i=Il5m0y_WjgU:mfu9yTZWpvc:V_sGLiP latest?d=qj6IDK7rITs latest?i=Il5m0y_WjgU:mfu9yTZWpvc:gIN9vFwIl5m0y_WjgU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments