![SCO에서 BASH를 기본값으로 설정](https://linux55.com/image/4015/SCO%EC%97%90%EC%84%9C%20BASH%EB%A5%BC%20%EA%B8%B0%EB%B3%B8%EA%B0%92%EC%9C%BC%EB%A1%9C%20%EC%84%A4%EC%A0%95.png)
bash
나는 이것을 SCO의 기본 셸로 만들려고 여러 번 시도했지만 실패했습니다.
나는 다음을 시도했습니다 :
- 설치된 배쉬- 사용
bash-2.05a.pkg
- Readline 설치- 사용
readline-4.2a.pkg
다음을 사용하여 설치했습니다.
pkgadd -d - < bash-2.05a.pkg
pkgadd -d - < readline-4.2a.pkg
.profile
그런 다음 내용은 다음과 같습니다 .
stty intr '^C'
#SHELL=/bin/sh
SHELL=/usr/local/bin/bash
HOME=/
PATH=/bin:/etc:/usr/bin:/tcb/bin:/usr/local/bin
# set terminal type
#eval `tset -m scoansi:${TERM:-scoansi} -m :\?${TERM:-scoansi} -e -r -s -Q`
TERM=bash
export TERM PATH SHELL HOME
[ -x /bin/mesg ] && mesg n # if mesg is installed...
if [ -f $HOME/.kshrc -a -r $HOME/.kshrc ]; then
# ksh88: intent is that $ENV is set only for interactive shells,
# ksh93 easier since it doesn't source $ENV when run non-interactively.
# $_ is set to 1. $_flags (shell flags, e.g. ismh) is set to 0
# Then one of the two is subtracted from their sum:
# either $_, if ${-%%*i*} evaluates to null (will for an interactive shell),
# or $_flags (for a non-interactive shell - i not set ).
# ENV will only be set if the result is 0, since only ENVFILE[0] is set.
ENV='${_ENVFILE[(_=1)+(_$-=0)-_${-%%*i*}]}'
_ENVFILE=/.kshrc
export ENV _ENVFILE
fi
온라인으로 확인했는데 누군가 나에게 이렇게 하라고 제안했습니다.
# cat /etc/shells
# @(#) shells 95.1 00/10/29
#
/bin/csh
/bin/sh
/bin/ksh
/usr/bin/scosh
/bin/bash
/usr/bin/bash
# exec /bin/bash
/bin/bash: not found
나는 다음과 같이 와 관련된 모든 것을 기계에서 검색해 보았습니다 bash
.
#find / -name bash*
/usr/local/bin/bash
/usr/local/bin/bashbug
/usr/local/info/bash.info
/usr/local/man/man1/bash.1
/usr/local/man/man1/bashbug.1
/usr/options/bash.name
/opt/K/SCO/lynx/5.0.7a/usr/lib/lynx/lynx_help/keystrokes/bashlike_edit_help.html
/opt/bash-2.05a.pkg
/var/adm/pkg/bash
(노트:bash.rc가 없습니다)
#find / -name .bash*
# (nothing)
bash
그렇다면 SCO에서 이를 기본 쉘로 설정하는 방법은 무엇입니까 ?
답변1
확인했습니다. 를 사용해야 합니다 scoadmin
. 완료되면 SCO 유지 관리 팩 5를 설치하고 시스템을 재부팅했습니다.
이제 다음을 입력하면:
# bash
bash-3.1#
머신에서 bash를 사용하면 훌륭하게 작동합니다!
편집하다
이는 루트 사용자뿐만 아니라 표준 사용자에게도 적용됩니다.