IBM Exam Questions

Which Korn shell syntax is used to assign the directory of the called script to a variable called my

Which Korn shell syntax is used to assign the directory of the called script to a variable called
mydir?

A.
mydir=$(dirname $0)

B.
$mydir=$(dirname $0)

C.
mydir=${dirname $@}

D.
mydir=$(dirname $?)

Explanation: