cshrc not being created...

For some reason a .cshrc file isn’t getting created on a recent OpenSuSE12.1x64 install. Always before it would be created whenever I first typed ‘csh’ in a bash shell. There are some basic things that I am used to having be there. Is there a command I can issue to trigger the creation of this file?

THANK YOU!!!

Hi
There should be a /etc/csh.cshrc file present? This file is part of
aaa_base which is always installed…

Did you not specify this as the default for the user?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 22:02, 2 users, load average: 0.28, 0.32, 0.37
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On 06/27/2012 06:56 PM, PattiMichelle wrote:
>
> For some reason a .cshrc file isn’t getting created on a recent
> OpenSuSE12.1x64 install

hi PaTti,

yOu have been around here so long, i wonder how you missed the name
change from SuSE to SUSE to openSUSE for sO lonG?

ps: i have no idea on yOur question’s answeR… but, i see i have an
/etc/csh.cshrc, is that what you are looking for? or, maybe
/etc/csh.cshrc.local


dd

Thanks!!! This is what happens when you let people learn Linux through KDE instead of the command line … :wink:

For me it was Lindows. Then OpenSuSE (or openSUSE)

I checked it out - I’m just curious why it didn’t happen automatically. (I normally just use the bash shell, but some software I have is scripted in csh.) I gotta get less busy so I don’t miss things like name changes! So now it’s openSUSE?

I see csh.cshrc and csh.login in /etc, but they’re huge - much larger than the standard .cshrc that is (usually) auto-created in the users’ directory when they first invoke csh (from bash). So, what’s the trick to go from these files to a “stock” users’ .cshrc? For years I’ve always just invoked csh from bash whenever I needed a csh to handle some csh scripted software… (I didn’t want to change system defaults if not necessary.)

patti@TYAN-III:/etc> ls -l csh*
-rw-r--r-- 1 root root 4500 Nov  2  2011 csh.cshrc
-rw-r--r-- 1 root root 7192 Nov  2  2011 csh.login
patti@TYAN-III:/etc> 

I am not a csh user, but did you simply try to create an empty .cshrc
and then put into it what you need


touch ~/.cshrc


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

On 06/27/2012 08:06 PM, PattiMichelle wrote:
> So now it’s openSUSE?

since 2006, when openSUSE 10.2 was born…

right after SUSE Linux 10.1
that old SuSE died way back in 2003
more trivia here http://en.wikipedia.org/wiki/openSUSE


dd

Well, for some reason opensuse normally creates a .cshrc file that isn’t empty - so I’m worried something in csh won’t work right without the “stock” .cshrc file first being created and I won’t know how to troubleshoot things. Too, this is a departure from all past behavior - never a good sign in computerland. I was hoping someone knowledgeable would help me not head into troubled waters since the software I’m trying to install is complicated.

Yes, they’re there, Malcom - any ideas why .cshrc isn’t getting created? <<it’s always something>>

On 06/27/2012 02:36 PM, PattiMichelle wrote:
>
> Well, for some reason opensuse normally creates a .cshrc file that
> -isn’t- empty - so I’m worried something in csh won’t work right without
> the “stock” .cshrc file first being created and I won’t know how to
> troubleshoot things. Too, this is a departure from all past behavior -
> never a good sign in computerland. I was hoping someone knowledgeable
> would help me not head into troubled waters since the software I’m
> trying to install is complicated.

On my copy of openSUSE (please notice the capitalization), ~/.cshrc does not
exist. My home directory has not been cleared for a long time, thus it seems
that it has not existed during the 11.X and 12.X releases. In fact ~/.cshrc is
supposed to be used for changes in the setup that are private to you. The
running of csh does not require that file.

If your csh scripts rely on a special setting in `/.cshrc, then they need to
create those local modifications.

It doesn’t have to. As already said, this file is for user settings only. It’s up to you to create and use it. I would rather have distros not creating this file (as they would probably fill it with stupid aliases). If you want to set defaults for future users, put your .cshrc in /etc/skel. This file should be owned by root:root.

On 2012-06-27 21:36, PattiMichelle wrote:
>
> Well, for some reason opensuse normally creates a .cshrc file that
> -isn’t- empty - so I’m worried something in csh won’t work right without
> the “stock” .cshrc file first being created and I won’t know how to
> troubleshoot things. Too, this is a departure from all past behavior -
> never a good sign in computerland. I was hoping someone knowledgeable
> would help me not head into troubled waters since the software I’m
> trying to install is complicated.

That file should be created when you create a new user, and is taken from
“/etc/skel/”. However, the one you want is not there. Was it ever? I dunno.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I create “.cshrc” and “.login” myself.

The files don’t have to exist.

If I ever write a csh script, then I put “-f” in the first line to make sure that it ignores any user “.cshrc”
as in


#! /bin/csh -f

In my opinion, you are describing a non-problem.

For the purists - I haven’t written a csh script in a long time. They were occasionally useful when a csh builtin function was particularly apt for the job at hand.

Very weird! ~/.cshrc is on all my systems (I’ve installed about 6 in the last month, including 4 on VirtualBox VMs). They always appear. VERY weird indeed! They always have about 20 lines in them. I’ll grab one and post it.

PattiMichelle wrote:

>
> For some reason a .cshrc file isn’t getting created on a recent
> OpenSuSE12.1x64 install. Always before it would be created whenever I
> first typed ‘csh’ in a bash shell. There are some basic things that I
> am used to having be there. Is there a command I can issue to trigger
> the creation of this file?
>
> THANK YOU!!!
>
>
You don’t really need one for each user - only for those settings unique to
her. csh(really tcsh on openSUSE) processes /etc/csh.cshrc at startup, then
/etc/csh.login if it’s a login shell, then the ones in $HOME, if any.

If you want to make specific changes for individual users, then use any
editor to create ~/.cshrc or ~/.login.

And if you want a skeleton .cshrc in each new user’s $HOME when it is
created, add the template file to /etc/skel.

I agree.

Yes, in fact the .cshrc files that have always gotten created before in 12.1 (who knows why?) do contain about 10 aliases. I guess I’m just always paranoid whenever a freshly installed system doesn’t behave consistently with previous installs - it makes me think that I’ve borked the install somehow…:open_mouth:

AGGGGHH!!! MY BAD!!!

Some software I had was creating the .cshrc file. Shoot! I’m sorry!!!