'set' variables

When running set a number of variables are displayed.

Bash:
addsuffix   
anyerror   
argv    ()
autoexpand   
autolist    ambiguous
autorehash   
cdtohome   
csubstnonl   
cwd    /
dirstack    /
echo_style    both
edit   
euid    0
euser    root
filec   
gid    0
group    wheel
history    1000
home    /root
killring    30
mail    /var/mail/root
owd    /root
path    (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /root/bin)
prompt    %n@%m:%~%#
prompt2    %R?
prompt3    CORRECT>%R (y|n|e|a)?
promptchars    %#
savehist    (1000 merge)
shell    /bin/csh
shlvl    3
status    0
tcsh    6.22.04
term    xterm-256color
tty    pts/6
uid    0
user    root
version    tcsh 6.22.04 (Astron) 2021-04-26 (x86_64-amd-FreeBSD) options wide,nls,dl,al,kan,sm,rh,color,filec

Where are they set initially? I've looked at /.cshrc /.profile /etc/csh.cshrc /etc/csh.login and can see where some of these values come from but have little idea as to where others come from.

Is there some explanation somewhere?
 
all of them besides .profile
some are internal defaults some are 'calculated'
man csh and search for cshrc

Looks like there many things to add after looking at:-

/usr/share/examples/csh/dot.cshrc

It all seems quite cryptic... I'm just wondering what all this means:-
Code:
complete gpart  'p/1/(add backup bootcode commit create delete destroy modify recover resize restore set show undo unset)/' \
                        'n/add/x:-t type [-a alignment] [-b start] [-s size] [-i index] [-l label] -f flags geom/' \
                'n/backup/x:geom/' \
                'n/bootcode/x:[-b bootcode] [-p partcode -i index] [-f flags] geom/' \
                'n/commit/x:geom/' \
                'n/create/x:-s scheme [-n entries] [-f flags] provider/' \
                'n/delete/x:-i index [-f flags] geom/' \
                'n/destroy/x:[-F] [-f flags] geom/' \
                'n/modify/x:-i index [-l label] [-t type] [-f flags] geom/' \
                'n/recover/x:[-f flags] geom/' \
                'n/resize/x:-i index [-a alignment] [-s size] [-f flags] geom/' \
                'n/restore/x:[-lF] [-f flags] provider [...]/' \
                'n/set/x:-a attrib -i index [-f flags] geom/' \
                'n/show/x:[-l | -r] [-p] [geom ...]/' \
                'n/undo/x:geom/' \
                'n/unset/x:-a attrib -i index [-f flags] geom/'
 
Back
Top