Project

General

Profile

Bug #11194

syseventadm.1m: ERROR: using macro argument outside macro

Added by Michal Nowak 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
manpage - manual pages
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Linting syseventadm.1m with mandoc 1.14.5 (https://www.illumos.org/issues/11190) reveals following errors:

$ mandoc -Tlint -Werror ~/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m 
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:289:22: ERROR: using macro argument outside macro: \$A
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:309:25: ERROR: using macro argument outside macro: \$A
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:58: ERROR: using macro argument outside macro: \${
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:45: ERROR: using macro argument outside macro: \${
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:35: ERROR: using macro argument outside macro: \${

Related issues

Related to illumos gate - Feature #11190: Update mandoc to 1.14.5Closed

Actions
Related to illumos gate - Feature #11195: Lint old man pages for errors with mandocClosed

Actions

History

#1

Updated by Michal Nowak 5 months ago

#2

Updated by Michal Nowak 5 months ago

  • Related to Feature #11195: Lint old man pages for errors with mandoc added
#3

Updated by Michal Nowak 5 months ago

Solution to this matter is to use $ directly without escaping.

RB: https://illumos.org/rb/r/1973

#4

Updated by Electric Monk 4 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 0ae8c37dc7709962a2fc99f02369b11707cccba0

commit  0ae8c37dc7709962a2fc99f02369b11707cccba0
Author: Michal Nowak <mnowak@startmail.com>
Date:   2019-06-13T19:08:35.000Z

    11194 syseventadm.1m: ERROR: using macro argument outside macro
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

#5

Updated by Michal Nowak 4 months ago

Testing

Before:

$ mandoc -Tlint -Werror ~/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m 
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:289:22: ERROR: using macro argument outside macro: \$A
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:309:25: ERROR: using macro argument outside macro: \$A
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:58: ERROR: using macro argument outside macro: \${
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:45: ERROR: using macro argument outside macro: \${
mandoc: /export/home/newman/ws/illumos-gate/usr/src/man/man1m/syseventadm.1m:310:35: ERROR: using macro argument outside macro: \${

The -R $ALTROOT portion is not displayed correctly with updated mandoc.

After:

$ mandoc -Tlint -Werror /usr/share/man/man1m/syseventadm.1m 

$ mandoc -l /usr/share/man/man1m/syseventadm.1m 
...
         # syseventadm add -R $ALTROOT -v MYCO -c EC_ENV -s ESC_ENV_TEMP \
              /opt/MYCOenv/bin/ec_env_temp ${class} ${subclass} ${pathname}
...
         # syseventadm remove -R $ALTROOT -v MYCO -c EC_ENV -s ESC_ENV_TEMP \
              /opt/MYCOenv/bin/ec_env_temp ${class} ${subclass} ${pathname}
...
         # syseventadm list -v MYCO -c EC_ENV -s ESC_ENV_TEMP \
              vendor=MYCO class=EC_ENV subclass=ESC_ENV_TEMP \
              /opt/MYCOenv/bin/ec_env_temp ${class} ${subclass} ${pathname}
...

Also available in: Atom PDF