On Thu, 2005-09-15 at 10:47 +0200, roberto wrote: > Ciao a tutti, > quando mi collego da remoto ad un pc mediante ssh non riesco a > utilizzare le opzioni che ho inserito nel mio /home/.bashrc come per > es. qualche alias: > > alias ll='ls -l' > alias la='ls -A' > alias lt='ls -lt' > > mentre invece, per esempio mi carica correttamente il PATH che ho > settato in quella macchina. > Perche'? > >
In info bash c'e' scritto When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. ..... When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. Io credo che quando ci si collega via ssh, si apre una (interactive) login shell e credo che .bashrc non venga eseguito. Di piu' non saprei dirti. Ciao Stefano -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]