SCOでBASHをデフォルト値に設定

SCOでBASHをデフォルト値に設定

bash私はこれをSCOのネイティブシェルにしようと数回試しましたが、失敗しました。

私は以下を試しました:

  1. 取り付けられたバッシュ- 使用bash-2.05a.pkg
  2. 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を使用すると、素晴らしい動作します!

編集する
これは root ユーザーだけでなく標準ユーザーにも当てはまります。

おすすめ記事