Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'How to avoid these problems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to avoid these problems
Authored by: LC on Jul 25, '05 09:40:12PM

Right -- I was going to point out that any decent .cshrc script which defines interactive features (aliases, etc.) needs to have an exit mechanism which bails out early for non-interactive shells. The installer application which launches a user shell is a non-interactive situation. Prior to the exit logic (where you check the prompt variable, and exit or skip if the prompt is not pre-set), the usual action would be to define the command path (set path ...). After the prompt check, you can put the terminal setting commands, command aliases, and other stuff. I thought (from years ago) that the csh (or cshrc) man page does mention this; Larry.

[ Reply to This | # ]