Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash force exit 0

function a() {
  ls aaaaa 2>&1
  return 0
}

a
echo $? # prints 0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #force #exit
ADD COMMENT
Topic
Name
9+3 =