sprkd
.io
🗡️ Gauntlet
Courses
Roles
Certs
Coach
Pricing
Sign in
📜
Shell Scripting
1 / 12
Functions & Arguments
Working
A function ends with
return 5
. What does the caller's
$?
hold right after calling it, and what would
return
with no number give?
A
$?
is 0; functions cannot set exit status
B
$?
is 5; a bare
return
returns the status of the last command run in the function
C
$?
is 5; a bare
return
is a syntax error
D
$?
is 5; a bare
return
returns 0 always
← Back
Next →