Come posso correggere l'errore "comando setenv non trovato"? (Ubuntu 12.04.4)


14

Uso Ubuntu 12.04.4. Installo tcsh. Ma vedo ancora questo errore:

No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found

Come posso ripararlo?

Risposte:


24

Hai due opzioni! Eseguire una cshshell compatibile o modificare la sintassi del comando.

setenv VARIABLE value

è cshsintassi (e sembra che tu lo sappia). Per kshe bashil comando equivalente è,

export VARIABLE=value

Per eseguire tcsh(dopo l'installazione con sudo apt-get install tcsh) è possibile

tcsh

Per impostare la shell in modo tcsh" permanente ",

chsh -s /usr/bin/tcsh

Per tornare a bash,

chsh -s /bin/bash
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.