summaryrefslogtreecommitdiff
path: root/glom.c
AgeCommit message (Collapse)Author
2017-10-27Fix exit value for -e with failed backquote or pipelineBert Münnich
This fixes rakitzis/rc issue #40. Both cases suffered from a misconception of statprint() in which the necessary check for -e happens. The checked status value gets passed to statprint() as an argument but the corresponding value passed to rc_exit() in case the status is non-zero comes from getstatus(), which requires that the checked status is written to statuses[] first. For pipelines this happened in the wrong order and for backquotes the status value was not put into statuses[] at all. Making statprint() a static helper function prevents this mistake by only leaving the setstatus family of functions to handle status codes.
2015-05-16 Bug: it's no longer possible to use parentheses to sneak a word thattjg
needs quoting past the "quoting detector", so `fn x { echo $(x.y) }' now works both in the current rc and its descendants.
2015-05-16don't include <sys/types.h> heretgoodwin
2015-05-16error message now reports failure of (POSIX) mkfifotgoodwin
2015-05-16try for mkfifo()tgoodwin
2015-05-16autoconftim
2015-05-16Initial revisiontim
2015-05-16Initial revisiontim
2015-05-16beta: rc-1.5b2Toby Goodwin
2015-05-16beta: rc-1.5betadev1Byron Rakitzis
2015-05-16release: rc-1.4Byron Rakitzis