Why does exiting with a stored returncode of a nested command result in different returncodes in dash and bash – unix.stackexchange.com

Running bash -c 'bash -c "echo test1; exit 1;" &> /tmp/x; buildresult=$?; tail -n 100 /tmp/x; exit $buildresult;' results in test1 being printed to console and echo $? to print 1 which in my ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why does exiting with a stored returncode of a nested command result in different returncodes in dash and bash – unix.stackexchange.com"