Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2023 05:28:49 -0500
From:      LuMiWa <lumiwa@dismail.de>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   sh shell
Message-ID:  <20231208052849.00987310@dismail.de>

next in thread | raw e-mail | index | archive | help
Hi!

I have FreeBSD 14.0-RELEASE-p2. Root shell is sh and user ksh.
In the root directory is .shrc and .sh_history which settings using if I
log as root or su -. But if I use just su if as I read should use also
root settings but it doesn't. It use .cshrc. Is it correct or I have
somewhere wrong setting, please?

env
LOGNAME=3Dabc
A__z=3D"*SHLVL
PAGER=3Dless
LANG=3Den_US.UTF-8
COLORFGBG=3D10;default;0
XAUTHORITY=3D/home/abc/.Xauthority
MAIL=3D/var/mail/abc
PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/a=
bc/bin
EDITOR=3Dvi
ENV=3D/home/abc/.kshrc
DISPLAY=3D:0
PWD=3D/home/abc
_=3Dclear
TERM=3Drxvt-unicode-256color
USER=3Dabc
HOME=3D/root
WINDOWPATH=3D9
SHELL=3D/bin/sh
COLORTERM=3Drxvt-xpm
MM_CHARSET=3DUTF-8
WINDOWID=3D27263125
BLOCKSIZE=3DK
SHLVL=3D2

Thank you.

--=20
=E2=80=9CLife shrinks or expands in proportion to one's courage.=E2=80=9D
=E2=80=95 Anais Nin=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231208052849.00987310>