Bash - current_history不执行

问题描述 投票:0回答:1

我试图在一个bash脚本中调用以下内容。

`history -a current_history`

它应该用这个会话执行的命令来创建文件。

在shell环境下工作得很好。

不能在bash脚本中工作

我做错了什么?

linux bash history
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.