눈바래다

$0

현재 shell script 이름 참조

$#

포지션인자의 갯수

$*

모든 포지션인자들로 평가된다

$@

$* 같은 의미를 지니지만 " " 사용한다

"$@"

"$1" "$2" "$3"

"$*"

"$1 $2 $3"

#!/bin/ksh

print The name of this script is $0

print The argument are $*

print The first argument is $1

print The Second argument is $2

print The number of argument is $#

oldparameters=$*

set oany dany ever

print All the positional parameter are $*

print The number of positional parameter is $#

print $oldparameters

set --

print Good-bye for now, $1

set $oldparameters

print $*

$ ksh args kkk 111 bbb

The name of this script is args

The argument are kkk 111 bbb

The first argument is kkk

The Second argument is 111

The number of argument is 3

All the positional parameter are oany dany ever

The number of positional parameter is 3

kkk 111 bbb

Good-bye for now,

kkk 111 bbb