我可以在历史记录脚本中使用wrap命令吗?


2

假设我有一个命令行界面工具,它没有任何“历史”概念。是否可以编写一个仅执行readlines并将它们转发到工具的小脚本,但是还将这些行存储在历史记录中?

(我注意到,while read line; do echo $line; done不支持历史......)

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.