Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 Fix the commands-to-generate-the-attachment l...
details: https://anonhg.NetBSD.org/src/rev/47320595d8d8
branches: trunk
changeset: 359805:47320595d8d8
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Feb 25 23:55:21 2018 +0000
description:
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.
diffstat:
share/man/man4/iic.4 | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 5a4df254a31b -r 47320595d8d8 share/man/man4/iic.4
--- a/share/man/man4/iic.4 Sun Feb 25 23:53:57 2018 +0000
+++ b/share/man/man4/iic.4 Sun Feb 25 23:55:21 2018 +0000
@@ -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 <grange%openbsd.org@localhost>
@@ -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
Home |
Main Index |
Thread Index |
Old Index