簡體   English   中英

管道別名掛起 xonsh

[英]Piping an alias hangs xonsh

我有以下別名:

aliases['test'] = 'grep @($args) somefile'

它工作得很好,但是當我嘗試將它傳遞給任何東西時,例如:

$ test smth | head

它仍然打印出完整的 output test smth忽略head命令,然后掛起(我無法使用 Ctrl-C 或 Ctrl-Z 擺脫掛起的 state 並且必須終止會話)。

關於如何修復的任何想法?

它在 xonsh 0.11.0 上工作

~ $ aliases['test'] = 'grep @($args) .bash_history'
~ $ test ls | head
ls -lnrt
ls -lnrt
lsb_release -a
lspci
lspci | grep VGA
lspci
ls -l
vim 
vim
ls -l

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM