Paste details

shell ...

markand

bash

month

#!/bin/sh

f()
{
        local x=$(false)
        echo $?
}

g()
{
        x=$(false)
        echo $?
}

f
g


# OUTPUT
# 0
# 1