Bash Force Exit 0
function a() {
ls aaaaa 2>&1
return 0
}
a
echo $? # prints 0
Elegant Elk
function a() {
ls aaaaa 2>&1
return 0
}
a
echo $? # prints 0