-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2151
Vidar Holen edited this page Oct 4, 2015
·
2 revisions
myfunc() {
return foo bar
}
myfunc() {
echo foo
echo bar
return 0
}
In bash, return
can only be used to signal success or failure (0 = success, 1-255 = failure).
To return textual or multiple values from a function, write them to stdout and capture them with command substitution instead.
See SC2152 for more information.
None