
bash -c "custom_functions" custom_function:command not found declare -fx 声明export -fx 声明typeset -xf 声明 1 hxy100 2023-05-15 03:31:18 +08:00 把你的函数定义在 ~/.bashrc 这个文件中不就行了吗?每次启动新的 bash 进程都会去自动读取这个文件 |
2 OldCarMan OP 谢谢回复。不过这样会不会不大规范,毕竟代码扩散到各种地方,维护管理起来比较麻烦。 |