[cs631apue] Question about -c option

gcheng2 gcheng2 at stevens.edu
Thu Dec 10 21:43:50 EST 2015


Hello Prof.,

Is -c option only for commands without options?  How do we handle
commands like
    sish -c "echo $?"

$? will be auto transferred to a number(exit status of previous
command), we could not read the string "$?".

Thanks,

Gong



More information about the cs631apue mailing list