how to use typeset?

tengrid發表於2009-05-18
typeset
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="1" [4]="release" [5]="i386-slackware-linux-gnu")
BASH_VERSION='2.05a.0(1)-release'
C2CDB_HOME=/usr/local/c2cdb
COLUMNS=132
DIRSTACK=()
EUID=1005
GROUPS=()
HISTFILE=/home/admin/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/admin
HOSTNAME=db_auction1
HOSTTYPE=i386
IFS=$' \t\n'
INPUTRC=/etc/inputrc
LC_ALL=en_US.ISO_8859-1
LD_LIBRARY_PATH=/usr/local/c2cdb/lib:/usr/local/mysql/lib:/usr/local/mysql/lib/mysql
LESS=-M
LESSOPEN='|lesspipe.sh %s'
LINES=46
LOGNAME=admin
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.bz2=01;31:*.rpm=01;31:*.deb=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;37:*.avi=01;37:*.mov=01;37:'
LS_OPTIONS=' --color=auto -F -b -T 0'
MACHTYPE=i386-slackware-linux-gnu
MAIL=/var/spool/mail/admin
MAILCHECK=60
MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man
MINICOM='-c on'
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:.:/usr/local/mysql/bin
PIPESTATUS=([0]="0")
PPID=12363
PS1='\u@\h:\w\$ '
PS2='> '
PS4='+ '
PWD=/home/admin
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
SHLVL=1
SSH2_CLIENT='172.16.1.162 38794 172.16.161.26 36000'
SSH2_SFTP_LOG_FACILITY=-1
T1LIB_CONFIG=/usr/share/t1lib/t1lib.config
TERM=vt100
UID=1005
USER=admin
_=c2cdb
file=/etc/profile.d/t1lib.sh
mc ()
{
    if [ "$USER" = "root" -a ! "`id | cut -b1-5`" = "uid=0" ]; then
        /usr/bin/mc "$@";
    else
        if [ ! "$USER" = "root" -a "`id | cut -b1-5`" = "uid=0" ]; then
            /usr/bin/mc "$@";
        else
            mkdir -p $HOME/.mc/tmp 2>/dev/null;
            chmod 700 $HOME/.mc/tmp;
            MC=$HOME/.mc/tmp/mc-$$;
            /usr/bin/mc -P "$@" >"$MC";
            cd "`cat $MC`";
            rm -f "$MC";
            unset MC;
        fi;
    fi
}

# man typeset
No manual entry for typeset
# typeset -u var=abc
bash: typeset: unknown option: `-u'
typeset: usage: typeset [-afFrxi] [-p] name[=value] ...

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-600280/,如需轉載,請註明出處,否則將追究法律責任。

相關文章