Commit Graph

18 Commits

Author SHA1 Message Date
Dmitri Vereshchagin
10564b1175 tmac/tmac.an: define .MR in a groff compatible way
groff 1.23.0 added .MR to its -man macro package.  The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020."  From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.

Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.

Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized.  groff's .MR does not.  This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
2025-07-27 09:58:50 -04:00
lufia
8ff39da062 src/cmd/rc: import rc syntax `delim{cmd} for splitting commands from 9atom
Co-authored-by: <ori@eigenstate.org>
2025-07-27 09:55:45 -04:00
Russ Cox
d32deab17b tmac: rename IM (italic manual) to MR (manual reference)
Suggested by G. Brandon Robinson.
2020-08-15 20:09:40 -04:00
Russ Cox
977b25a76a tmac: introduce real manual reference macro instead of overloading IR
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links.
But not all such IR invocations should be manual links;
those had to be written to avoid the IR macro before.
Worse, the \X'...' ending the IR causes troff to emit only a single space after a period.

Defining a new IM macro for manual references fixes both problems.

Fixes #441.
2020-08-13 23:43:43 -04:00
Russ Cox
bfe4377e40 man: update man pages to say $HOME when accurate
Fixes #386.
2020-05-18 23:51:35 -04:00
Russ Cox
b962b25eca rc(1): mention /etc/shells in BUGS section 2020-05-05 08:35:56 -04:00
Russ Cox
ff74f7cdda rc: allow unquoted = in command arguments
dd fans rejoice!

Also helps with commands like go test -run=x.
2020-05-04 23:41:15 -04:00
Russ Cox
7d6a248f2c rc: move free carat handling into parser
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.
2020-05-04 23:41:15 -04:00
Russ Cox
519fe61375 rc(1): remove FreeBSD version 2011-10-31 09:31:21 -04:00
Michael Teichgräber
38b62735e4 rc: implement and document <>{cmd} notation
http://codereview.appspot.com/105061
2009-09-13 18:26:51 -04:00
Russ Cox
94e1f2a438 rc: add subscript sequences (Erik Quanstrom) 2008-07-20 04:15:41 -04:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
7b0c2f155d no more 9commands 2005-01-11 21:28:31 +00:00
rsc
c3674de413 use macro for /usr/local/plan9 2005-01-11 17:37:33 +00:00
rsc
11c751cf16 mention freebsd nonsense 2005-01-07 20:29:43 +00:00
rsc
058b0118a5 Some man pages. 2005-01-03 06:40:20 +00:00
rsc
b5fdffeeed Mostly path name updates 2004-04-19 19:22:56 +00:00
rsc
cfa37a7b11 Lots of man pages. 2004-04-10 18:53:55 +00:00