0
点赞
收藏
分享

微信扫一扫

【Ubuntu】alias设置的别名命令在终端正常执行在shell脚本中无法直接使用(command not found)?

yeamy 2023-06-16 阅读 55
ubuntu

​alias设置的别名命令在终端正常执行在shell脚本中无法直接使用(command not found)?

1 背景👇🏻👇🏻👇🏻:

shell脚本内容如下: 

#!/bin/bash
setup_test

2 分析🐰🐰🐰:

3 解决方法💊💊💊:
具体做法是在shell脚本内容修改如下:

#!/bin/bash -i
setup_test
举报

相关推荐

0 条评论