What is the output of the following command, if executed using the default shell for the root role account of a
standard Live CD Install of Oracle Solaris 11?
echo ‘$SHELL’
A.
/usr/bin/bash
B.
/usr/bin/ksh
C.
$SHELL
D.
the PID for the current shell
Explanation:
Single quotes are most strict. They prevent even variable expansion. Double quotes prevent wildcard
expansion but allow variable expansion. For example:
#!/bin/shecho $SHELL
echo “$SHELL”
echo ‘$SHELL’
This will print:
/usr/bin/bash
/usr/bin/bash
$SHELL