bug with $? after .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


According to POSIX, the status of . shall be 0 if no command was executed during
the sourced script.  Therefore, this is a bug:

$ dash -c 'false; . /dev/null; echo $?'
1

and should be fixed to output 0.

-- 
Eric Blake


--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

Powered by Linux