Module Name:    src
Committed By:   pgoyette
Date:           Sun Feb 25 23:55:21 UTC 2018

Modified Files:
        src/share/man/man4: iic.4

Log Message:
Fix the commands-to-generate-the-attachment list to use tab's instead
of multiple spaces in the regex bracket expressions, and alert the
reader to this.  Otherwise, a cut-and-paste might simply expand the
tab characters to some number of spaces, and the result won't find
what you're looking for!

XXX Despite the indication that these commands should be run in csh
(or derivative), they seem to run just fine under /bin/sh as well.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man4/iic.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/iic.4
diff -u src/share/man/man4/iic.4:1.16 src/share/man/man4/iic.4:1.17
--- src/share/man/man4/iic.4:1.16	Sun Feb 25 23:51:25 2018
+++ src/share/man/man4/iic.4	Sun Feb 25 23:55:21 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: iic.4,v 1.16 2018/02/25 23:51:25 pgoyette Exp $
+.\"	$NetBSD: iic.4,v 1.17 2018/02/25 23:55:21 pgoyette Exp $
 .\"	$OpenBSD: iic.4,v 1.74 2008/09/10 16:13:43 reyk Exp $
 .\"
 .\" Copyright (c) 2004, 2006 Alexander Yurchenko <gra...@openbsd.org>
@@ -24,9 +24,11 @@
 .Nd Inter IC (I2C) bus
 .Sh SYNOPSIS
 .\"
-.\" Use the following commands in (t)csh to output the list below:
+.\" Use the following commands in (t)csh to output the list below (note
+\." the first sed command includes a <space> and <tab> character in each
+\." of the bracket expressions):
 .\" cd .../src/sys/arch
-.\" grep -h '^iic.*at' */conf/* | sort -u -k +3 | sed -e 's,[         ][      ]*, ,g' -e 's, *#.*,,' | sh -c 'while read iic at ic ; do printf ".Cd \"$iic $at %-20s # %s\"\n" "$ic" "`grep \"iic.*at.*$ic\" */conf/* | sed \"s,/.*,,\" | sort -u | tr \"\012\" \ `"  ; done' | uniq | tee /tmp/x
+.\" grep -h '^iic.*at' */conf/* | sort -u -k +3 | sed -e 's,[	 ][	 ]*, ,g' -e 's, *#.*,,' | sh -c 'while read iic at ic ; do printf ".Cd \"$iic $at %-20s # %s\"\n" "$ic" "`grep \"iic.*at.*$ic\" */conf/* | sed \"s,/.*,,\" | sort -u | tr \"\012\" \ `"  ; done' | uniq | tee /tmp/x
 .\" cat /tmp/x
 .\"
 .Sh DESCRIPTION

Reply via email to