<feed xmlns='http://www.w3.org/2005/Atom'>
<title>plan9port/src/cmd/rc, branch patch</title>
<subtitle>Plan 9 from User Space (with patches)</subtitle>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/'/>
<entry>
<title>src/cmd/rc: import rc syntax `delim{cmd} for splitting commands from 9atom</title>
<updated>2025-07-27T13:55:45+00:00</updated>
<author>
<name>lufia</name>
<email>lufia@lufia.org</email>
</author>
<published>2025-07-21T04:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=8ff39da0623dbab13c00ce25a16dda168f6ec0a0'/>
<id>8ff39da0623dbab13c00ce25a16dda168f6ec0a0</id>
<content type='text'>
Co-authored-by: &lt;ori@eigenstate.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: &lt;ori@eigenstate.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>all: remove need for `-fcommon`</title>
<updated>2025-07-25T16:25:11+00:00</updated>
<author>
<name>Dan Cross</name>
<email>cross@gajendra.net</email>
</author>
<published>2025-07-23T10:47:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=156e745be9f6a1b19b0f8e2a931148786d7acad4'/>
<id>156e745be9f6a1b19b0f8e2a931148786d7acad4</id>
<content type='text'>
Use `extern` where appropriate so that we can remove `-fcommon`
on macOS and others.  On macOS, `-fcommon` generates a number of
linker warnings.

I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD
and illumos.  I am not in a position to test on AIX or other
more esoteric platforms, however.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use `extern` where appropriate so that we can remove `-fcommon`
on macOS and others.  On macOS, `-fcommon` generates a number of
linker warnings.

I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD
and illumos.  I am not in a position to test on AIX or other
more esoteric platforms, however.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: add $egrep</title>
<updated>2025-07-23T19:44:54+00:00</updated>
<author>
<name>Dan Cross</name>
<email>cross@gajendra.net</email>
</author>
<published>2025-07-22T14:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=564d45b5a55adeb48f69fdecb2bf4ed1f909850b'/>
<id>564d45b5a55adeb48f69fdecb2bf4ed1f909850b</id>
<content type='text'>
Introduce a new variable set in $PLAN9/config:
$egrep, which is conditionally set to either
`egrep` or `grep -E`, based on platform, and use
this when we want to invoke `egrep`.

This works around the endless warnings from GNU
grep stating that `egrep` is deprecated in favor
of `grep -E`, when run on e.g. Linux.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce a new variable set in $PLAN9/config:
$egrep, which is conditionally set to either
`egrep` or `grep -E`, based on platform, and use
this when we want to invoke `egrep`.

This works around the endless warnings from GNU
grep stating that `egrep` is deprecated in favor
of `grep -E`, when run on e.g. Linux.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: remove dead code.</title>
<updated>2022-05-11T21:51:47+00:00</updated>
<author>
<name>Ori Bernstein</name>
<email>ori@eigenstate.org</email>
</author>
<published>2020-10-07T03:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=964ac74cdc9d9bd22aec10bba850db93c4445cc5'/>
<id>964ac74cdc9d9bd22aec10bba850db93c4445cc5</id>
<content type='text'>
kencc warns that this code is dead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
kencc warns that this code is dead.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: do not exit on EINTR from read</title>
<updated>2021-01-14T14:59:54+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2021-01-14T14:59:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=c3ae85a004c8714fc653629a983327d9a15b36da'/>
<id>c3ae85a004c8714fc653629a983327d9a15b36da</id>
<content type='text'>
This happens if lldb attaches to rc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This happens if lldb attaches to rc.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: avoid problematic internal names "var", "thread"</title>
<updated>2020-05-19T02:35:17+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-19T02:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=20c841bac102e777a3a1723724fa5d31018fefcc'/>
<id>20c841bac102e777a3a1723724fa5d31018fefcc</id>
<content type='text'>
For AIX.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For AIX.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: clean up parser levels, disallow free carats on lists</title>
<updated>2020-05-05T12:30:14+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-05T12:29:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=601e07b63653d0fed91594ebba261b733d017653'/>
<id>601e07b63653d0fed91594ebba261b733d017653</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: allow unquoted = in command arguments</title>
<updated>2020-05-05T03:41:15+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-05T03:31:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=ff74f7cdda7b08da6fe7c8bbcca990305fd6b547'/>
<id>ff74f7cdda7b08da6fe7c8bbcca990305fd6b547</id>
<content type='text'>
dd fans rejoice!

Also helps with commands like go test -run=x.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dd fans rejoice!

Also helps with commands like go test -run=x.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: move free carat handling into parser</title>
<updated>2020-05-05T03:41:15+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-05T03:20:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=7d6a248f2c68d70f58387afc69e73e695c3d940c'/>
<id>7d6a248f2c68d70f58387afc69e73e695c3d940c</id>
<content type='text'>
This fixes at least one shell script (printfont) that expected

	'x'`{y}'z'

to mean

	'x'^`{y}^'z'

as it now does. Before it meant:

	'x'^`{y} 'z'

One surprise is that adjacent lists get a free carat:

	(x y z)(1 2 3)

is

	(x1 y2 z3)

This doesn't affect any rc script in Plan 9 or plan9port.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes at least one shell script (printfont) that expected

	'x'`{y}'z'

to mean

	'x'^`{y}^'z'

as it now does. Before it meant:

	'x'^`{y} 'z'

One surprise is that adjacent lists get a free carat:

	(x y z)(1 2 3)

is

	(x1 y2 z3)

This doesn't affect any rc script in Plan 9 or plan9port.
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: move newline handling into parser</title>
<updated>2020-05-05T03:41:15+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-05T02:52:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=3caf5c238a886d06b438ec6d42f2609b8625463f'/>
<id>3caf5c238a886d06b438ec6d42f2609b8625463f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
