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>

index | next in thread | raw e-mail

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=abc
A__z="*SHLVL
PAGER=less
LANG=en_US.UTF-8
COLORFGBG=10;default;0
XAUTHORITY=/home/abc/.Xauthority
MAIL=/var/mail/abc
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/abc/bin
EDITOR=vi
ENV=/home/abc/.kshrc
DISPLAY=:0
PWD=/home/abc
_=clear
TERM=rxvt-unicode-256color
USER=abc
HOME=/root
WINDOWPATH=9
SHELL=/bin/sh
COLORTERM=rxvt-xpm
MM_CHARSET=UTF-8
WINDOWID=27263125
BLOCKSIZE=K
SHLVL=2

Thank you.

-- 
“Life shrinks or expands in proportion to one's courage.”
― Anais Nin 


help

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