View previous topic :: View next topic |
Author |
Message |
GentooUser@Clubic l33t
Joined: 01 Nov 2004 Posts: 829
|
Posted: Wed Apr 28, 2010 9:22 pm Post subject: [shell] pipe cassé (command no found) (résolu) |
|
|
Salut,
Depuis quelques temps mon systeme n'interprète plus correctement mes commandes si une barre "|" est présente (le fameux cat | grep qui tue les chatons), exemple :
Quote: | % echo 0 | cat -
zsh: command not found: cat
% which cat
/bin/cat
|
Pareil avec les commandes internes ce n'est donc pas un problème de path :
Quote: | % echo 0 | echo 1
zsh: command not found: echo
% which echo
echo: shell built-in command
|
Inutile de préciser qu'exécutées seules sans redirection de flux ces commandes marchent (sinon je serait déjà en train de tout réinstaller )
Ça le fait autant avec zsh qu'avec bash et pareil que se soit dans un script un un terminal interactif.
J'ai fait un emerge -e world, vérifié ma config, un revdep-rebuild et là je ne sait plus ou chercher.
Le plus bizarre c'est que aléatoirement ça marche
Last edited by GentooUser@Clubic on Wed Apr 28, 2010 10:52 pm; edited 1 time in total |
|
Back to top |
|
|
Poussin l33t
Joined: 08 Jun 2007 Posts: 659 Location: Liège
|
Posted: Wed Apr 28, 2010 9:28 pm Post subject: |
|
|
Salut,
les redirections des sorties (out / err / fichier...) fonctionnent-elle? |
|
Back to top |
|
|
GentooUser@Clubic l33t
Joined: 01 Nov 2004 Posts: 829
|
Posted: Wed Apr 28, 2010 9:33 pm Post subject: |
|
|
Oui, en fait le problème semble venir uniquement des commandes après un |" |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Apr 28, 2010 10:07 pm Post subject: Re: [shell] pipe cassé (command no found) |
|
|
GentooUser@Clubic wrote: | Pareil avec les commandes internes ce n'est donc pas un problème de path :
Quote: | % echo 0 | echo 1
zsh: command not found: echo
% which echo
echo: shell built-in command
|
Inutile de préciser qu'exécutées seules sans redirection de flux ces commandes marchent (sinon je serait déjà en train de tout réinstaller )
Ça le fait autant avec zsh qu'avec bash et pareil que se soit dans un script un un terminal interactif.
J'ai fait un emerge -e world, vérifié ma config, un revdep-rebuild et là je ne sait plus ou chercher.
Le plus bizarre c'est que aléatoirement ça marche |
Mouais, j'aimerais quand même un peu plus d'infos pour vraiment pouvoir écarter le problème de PATH:
La sortie de ton 'which echo' est surprenante, which est également un builtin de zsh? que te donne la commande(oui il y a bien un '\'
Bon, et sinon, si tu précises la commande avec le chemin absolue, ça marche?
Code: | echo tralala | /bin/cat - |
Si ça marche, il doit te manquer un 'export' quelque part?
EDIT: le 'pipe' te créé un sous-shell, qu'en est-il si tu le crée toi même (tape 'sh' dans ta console), as-tu accès à ces commandes? _________________ The End of the Internet! |
|
Back to top |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Wed Apr 28, 2010 10:30 pm Post subject: |
|
|
Ça me rappelle un problème du même genre que j'ai eu ya bien longtemps... c'est surement parce que l'un des espaces autour du | est un espace insécable, du fait que tu fais un altgr-6 pour faire le |, et donc en tapant vite, tu fais un altgr-espace qui donne un espace insécable si t'es en fr-latin9. En fr-oss ya pas le soucis, faut faire un altgr-shift-espace pour faire l'insécable. (et en qwerty ya encore moins de problème ) |
|
Back to top |
|
|
GentooUser@Clubic l33t
Joined: 01 Nov 2004 Posts: 829
|
Posted: Wed Apr 28, 2010 10:51 pm Post subject: |
|
|
geekounet -> C'est exactement ça merci !
Par contre bizarre ça le fait pas avec mon vieux clavier DELL !
Pour fr-oss j'hésite, je me suis habitué à la touche compose. |
|
Back to top |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Thu Apr 29, 2010 6:21 am Post subject: |
|
|
Compose tu peux l'avoir avec n'importe quel layout. |
|
Back to top |
|
|
RaX Apprentice
Joined: 16 Aug 2007 Posts: 166
|
Posted: Thu Apr 29, 2010 8:57 am Post subject: |
|
|
Salut,
sys-apps/kbd-1.15 ne fournit pas fr-oss, est-ce normal ?
Faut faire comment si on veux profiter de ce keymap ?
Bonne journée. |
|
Back to top |
|
|
guilc Bodhisattva
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Thu Apr 29, 2010 9:51 am Post subject: |
|
|
Comme ça
Code: | # cat /etc/X11/xorg.conf.d/90-keyboard.conf
Section "InputClass"
Identifier "keyboard"
Driver "evdev"
Option "XkbLayout" "fr"
Option "XkbVariant" "oss"
Option "XkbOptions" "compose:menu"
MatchIsKeyboard "on"
EndSection
|
_________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing |
|
Back to top |
|
|
RaX Apprentice
Joined: 16 Aug 2007 Posts: 166
|
Posted: Fri Apr 30, 2010 10:01 am Post subject: |
|
|
Oui, je me pausait la question pour la console en fait. |
|
Back to top |
|
|
|