Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[shell] bash vs csh
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ScolaBirra
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 180
Location: Lausanne, Switzerland

PostPosted: Thu Sep 16, 2004 12:58 pm    Post subject: [shell] bash vs csh Reply with quote

Ok ho installato un soft commerciale (ams della mentor) sulla mia Gentoo e funziona a meraviglia, con un unico problema: devo usare csh. Ora essendo io abituato a bash (anche visto che mi sono configurato tutto per bash) volevo sapere se c'era un modo per poter utilizzare sotto bash quello che e' per csh. Il porblema e' che il file .cshrc chiama:
Code:
setenv    anacad  /softs/mentor
source    $anacad/com/init_anacad

chiaramente se chiamo da bash lo stesso script mi si inka**a perche' lo script e' pieno di setenv & compagnia... La voglia di riscrivere tutti i files di config e' bassa perche' la directory contiene 208k di scripts !!!!
c'e' un metodo alternativo?

Ciao
Scola
_________________
Smile, tomorrow will be worse! :-)
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Thu Sep 16, 2004 1:29 pm    Post subject: Reply with quote

Non conosco bene csh, ma credo che source sia lo stesso usato in bash, mentre per "setenv" puoi convertirlo in "export"

per esempio
Code:

setenv    anacad  /softs/mentor

diventerebbe
Code:

export anacad="/soft/mentor"


potresti provare se non ho detto cazzate con un file e se funziona puoi farti uno scriptino che converte tutti i file.
_________________
...
Back to top
View user's profile Send private message
ScolaBirra
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 180
Location: Lausanne, Switzerland

PostPosted: Thu Sep 16, 2004 1:41 pm    Post subject: Reply with quote

Uhmm... non e' cosi' semplice, vabbe' i setenv si convertono facilemente, ma ci sono pur sempre altri comandi (stile if e compagnia) che cambiano di sintassi...
_________________
Smile, tomorrow will be worse! :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum