    sh.exe ɂ (Korn shell ̃N[)

    []
    sh.exe ́AWindows NT, Windows 2000 ł shell Ƃ
    ܂Ƃɓ삵܂AWindows 98 Ȃǂł͂܂Ƃɓ삵܂B
    ]āA bin fBNgł͂ȂāÃ݂fBNg
    $TEXMFMAIN/doc/ksh ɓĂ܂B Windows NT, Windows 2000
    ̏ꍇɁAgĂ݂悤Ƃꍇɂ̂݁APATH ̒ʂfBNg
    Rs[ĎgpĉB

 
    ̃fBNgɂ Korn shell ̃TuZbg sh.exe ܂B
    ͋N copyright notice \΃oCizz
    ̂łBsh.txt QƂĂBzz sh.exe  Win32
    CUI ƂăRpĈ, R}hC̒I
    Wi 1024 C24576 ɑ傫Ă܂Bt@C
    tpX ENV ϐŗႦ ENV=c:/users/default/.profile ̂
    Ɏw肵ĂƁC֗ shell ƂĎgp邱Ƃł܂B
    hCu͕ʂ̂悤Ɏgpł܂. fBNgZp[^ UNIX
    ƓŁC/ łCpXZp[^̓R : ł͂ȂăZ~R ;
    łBZ~R shell ̓ꕶł̂ŁCt@C 
    .profile  PATH ݒ肷Ƃ́CpKvłB
    F PATH="c:/winnt/system32;c:/bin;c:/usr/bin;c:/usr/local/bin;."
    Korn shell ̖wǂ̋@\͎Ă悤ŁCɕ֗ŋ͂
    shell łBcmd.exe p foo.bat t@Cs邽߂ɁC
    .profile  COMSPEC=cmd.exe ƂĂĂB
    PATH  extension ȂC .sh, .ksh, .sub ̊gq
    (  foo, foo.sh, foo.ksh, foo.sub ) ƁCscript ƂĎs
    ł܂( foo Ƃ邾 ). ŏ̍s
    #! c:/bin/sh  Ƃ #! c:/usr/local/bin/perl
    Ŏn߂Ă΁C]݂̏Ă܂B
    Korn shell ɂĂ͎ŝ̏ЂQlɂĉB
    ܘ_K shell ƂĎgpɂ GNU utilities s
    łĈ悢̂ ftp://microlib.cc.utexas.edu/microlib/nt/gnu
    ɂ gnubin.tar.Z łB

    .profile ̗ɕtĂ܂B
# -------------------
# example of .profile
#
PATH="c:/bin;c:/usr/local/bin;c:/winnt/system32;c:/winnt;"
PATH=${PATH}"c:/MSDEV/BIN;c:/usr/bin;"
PATH=${PATH}"c:/usr/local/lib/mule2/bin;"
PATH=${PATH}"c:/usr/local/lib/ispell;"
PATH=${PATH}"c:/cygnus/H-i386-cygwin32/bin;."
#
LIB="c:/MSDEV/lib;c:/MSDEV/mfc/lib;c:/usr/local/lib"
INCLUDE="c:/msdev/mfc/include;c:/msdev/include"
#
alias which='whence -p' # `which xxx' will tell you if executable xxx
                        # exists and if so give its full path name
alias sl='ls -F'	# short list
alias l='ls -alF'	# long list
alias del='rm -i'	# interactive remove
alias h=history		# list history
alias r='fc -e -'	# run history number
alias rd=rmdir		# remove directory
alias md=mkdir		# make directory
alias cd=chd		# change directory and print cwd
alias b='cmd /c'	# for invoking cmd
alias clear='cmd /c cls'
PS1="(hello)# "
#
TERM='pcbios' # may be needed for Congruent's version of vi  
SHELL=c:/bin/sh
TEMP=c:/temp
TMP=$TEMP
TMPDIR=$TEMP
HISTSIZE=300
SH_PATH=c:/bin/sh.exe
export PATH TERM TEMP TMP TMPDIR SHELL HISTSIZE LIB SH_PATH INCLUDE
#
COMSPEC=cmd.exe
export COMSPEC
PGPPATH=c:/usr/local/lib/pgp
TZ=JST-9
export PGPPATH TZ
# function chd
chd ()
{
  builtin cd ${1+"$@"} && echo $PWD
}
set -o emacs
set -o ignoreeof
#
# end of example
# --------------

------------------------------------------
Akira Kakuto  < kakuto@fuk.kindai.ac.jp >
------------------------------------------
