J'utilise Ubuntu 12.04.4. J'installe tcsh. Mais je vois toujours cette erreur:
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found
Comment puis-je le réparer?
J'utilise Ubuntu 12.04.4. J'installe tcsh. Mais je vois toujours cette erreur:
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found
Comment puis-je le réparer?
Réponses:
Vous avez deux options! Exécutez un cshshell compatible ou modifiez la syntaxe de votre commande.
setenv VARIABLE value
est la cshsyntaxe (et vous semblez la connaître). Pour kshet bashla commande équivalente est,
export VARIABLE=value
Pour exécuter tcsh(après l'installation avec sudo apt-get install tcsh), vous pouvez
tcsh
Pour basculer votre shell sur tcsh"en permanence ",
chsh -s /usr/bin/tcsh
Pour revenir à bash,
chsh -s /bin/bash