Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下别名:
aliases['test'] = 'grep @($args) somefile'
它工作得很好,但是当我尝试将它输送到任何东西时,例如:
$ test smth | head
它仍然打印出test smth忽略head命令的完整输出,然后挂起(我无法使用 Ctrl-C 或 Ctrl-Z 退出挂起状态,必须终止会话)。
test smth
head
关于如何解决的任何想法?