nvbn/thefuck

Doesn't handle pipes

Ouverte

#108 ouverte le 23 avr. 2015

 (5 commentaires) (0 réaction) (0 personne assignée)Python (3 960 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (97 740 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur