How shell alias inside function?

后端 未结 0 1385
长情又很酷
长情又很酷 2020-12-12 23:02
bash -c \'shopt -s expand_aliases

a() {
    alias myfunc="echo myfunc"
}

main() {
    a
    myfunc
}

main\'


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题