nvbn/thefuck

Doesn't handle pipes

開放

#108 建立於 2015年4月23日

 (5 則留言) (0 個反應) (0 位負責人)Python (3,960 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (97,740 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

It looks like fuck doesn't handle pipes well. If I try to do this in Bash:

$ pss -ef | grep foo
-bash: pss: command not found
$ fuck
ps -ef | grep foo
ps: illegal argument: |
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
          [-g grp[,grp...]] [-u [uid,uid...]]
          [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
       ps [-L]

It looks like the command is executed in the wrong way, it seems like it's trying to execute it as a single command, instead of treating it as a line of input with potentially multiple commands.

貢獻者指南