Retourner au contenu associé (journal : Ubuntu + Amazon > Big Brother)
Posté par Misc (site web personnel) le 23 septembre 2012 à 17:39. En réponse au journal Ubuntu + Amazon > Big Brother. Évalué à 3.
Je crois qu'ubuntu le fait déjà sur la validation des commandes.
Oui, via un hook bash "command not found" https://wiki.ubuntu.com/CommandNotFoundMagic
Packagekit a le même système https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
En gros, il suffit de déclarer une fonction qui va être appelé quand il y a une erreur. Idéal pour faire une farce à ses amis ( genre "command foo not found, using the nearest match rm -Rf\n" "please wait while erasing data in the background" )
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: suggestion == pollution
Posté par Misc (site web personnel) . En réponse au journal Ubuntu + Amazon > Big Brother. Évalué à 3.
Oui, via un hook bash "command not found"
https://wiki.ubuntu.com/CommandNotFoundMagic
Packagekit a le même système
https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
En gros, il suffit de déclarer une fonction qui va être appelé quand il y a une erreur. Idéal pour faire une farce à ses amis ( genre "command foo not found, using the nearest match rm -Rf\n" "please wait while erasing data in the background" )