in reply to $? stuck returning -1...

$? == -1 means the system call to launch the command failed. The error code/msg is in $!.

Replies are listed 'Best First'.
Re^2: $? stuck returning -1...
by cmv (Chaplain) on Jun 20, 2007 at 20:27 UTC
    If this were true, then I shouldn't be getting a valid date output, but I am.

    This is the confusing part. Why am I getting $?=-1 after the backtick command works just fine?

    Aaaahhh, joost: explains all. Thanks!