<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rc/glom.c, branch master</title>
<subtitle>Byron Rakitzis' rc(1) port, with a few modifications
</subtitle>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/'/>
<entry>
<title>Include sys/wait.h on OpenBSD for WIFSIGNALED()</title>
<updated>2026-05-22T19:58:12+00:00</updated>
<author>
<name>hhvn</name>
<email>dev@hhvn.uk</email>
</author>
<published>2026-05-22T19:17:30+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=0f927b532cb59c9334c85698eea1d2ccfda49a31'/>
<id>0f927b532cb59c9334c85698eea1d2ccfda49a31</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore tty attributes if interactive child is terminated by signal</title>
<updated>2018-12-29T18:19:11+00:00</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2017-11-18T12:58:07+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=da63ba04988e68bca1395eff60cc362ea14e3c34'/>
<id>da63ba04988e68bca1395eff60cc362ea14e3c34</id>
<content type='text'>
Some programs like su(1) do not restore tty attributes like ECHO when they are
terminated by receiving SIGINT. Other shells (bash, mksh, zsh) save tty
attributes before executing an external command and restore them if the child
exited due to the receipt of a signal. rc now does the same if it is
interactive.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some programs like su(1) do not restore tty attributes like ECHO when they are
terminated by receiving SIGINT. Other shells (bash, mksh, zsh) save tty
attributes before executing an external command and restore them if the child
exited due to the receipt of a signal. rc now does the same if it is
interactive.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix exit value for -e with failed backquote or pipeline</title>
<updated>2017-10-27T18:22:21+00:00</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2017-10-27T17:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=775b775240d09fe665efaecf2432d590567e68ef'/>
<id>775b775240d09fe665efaecf2432d590567e68ef</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>  Bug: it's no longer possible to use parentheses to sneak a word that</title>
<updated>2015-05-16T20:23:19+00:00</updated>
<author>
<name>tjg</name>
<email>tjg</email>
</author>
<published>2001-10-02T09:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=361e9b464d51a935364eb00d6a2a9a3a5e57d868'/>
<id>361e9b464d51a935364eb00d6a2a9a3a5e57d868</id>
<content type='text'>
  needs quoting past the "quoting detector", so `fn x { echo $(x.y) }'
  now works both in the current rc and its descendants.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  needs quoting past the "quoting detector", so `fn x { echo $(x.y) }'
  now works both in the current rc and its descendants.
</pre>
</div>
</content>
</entry>
<entry>
<title>don't include &lt;sys/types.h&gt; here</title>
<updated>2015-05-16T20:23:11+00:00</updated>
<author>
<name>tgoodwin</name>
<email>tgoodwin</email>
</author>
<published>1998-10-21T12:52:30+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=ed7d22829d82dba9714c6b7a5fdf37a95c05a269'/>
<id>ed7d22829d82dba9714c6b7a5fdf37a95c05a269</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>error message now reports failure of (POSIX) mkfifo</title>
<updated>2015-05-16T20:23:08+00:00</updated>
<author>
<name>tgoodwin</name>
<email>tgoodwin</email>
</author>
<published>1998-07-15T14:12:00+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=ebc9d1856f5298b3cac0b0053541d4e1a0720741'/>
<id>ebc9d1856f5298b3cac0b0053541d4e1a0720741</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>try for mkfifo()</title>
<updated>2015-05-16T20:23:05+00:00</updated>
<author>
<name>tgoodwin</name>
<email>tgoodwin</email>
</author>
<published>1998-02-24T12:00:28+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=a8c039e14eafd7933776e8616715955d52320600'/>
<id>a8c039e14eafd7933776e8616715955d52320600</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>autoconf</title>
<updated>2015-05-16T20:23:01+00:00</updated>
<author>
<name>tim</name>
<email>tim</email>
</author>
<published>1997-07-01T19:57:45+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=df8f2d58845819d1973779918d9c97018edc1170'/>
<id>df8f2d58845819d1973779918d9c97018edc1170</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial revision</title>
<updated>2015-05-16T20:23:00+00:00</updated>
<author>
<name>tim</name>
<email>tim</email>
</author>
<published>1997-05-14T16:24:26+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=ed998daafc3b46899a4c59419a9ac584d3a5e883'/>
<id>ed998daafc3b46899a4c59419a9ac584d3a5e883</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial revision</title>
<updated>2015-05-16T20:23:00+00:00</updated>
<author>
<name>tim</name>
<email>tim</email>
</author>
<published>1997-05-14T15:30:41+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=53cf1b1c1c3f0c2b5067afccc2976b99a574a089'/>
<id>53cf1b1c1c3f0c2b5067afccc2976b99a574a089</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
