[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13-fyi-kbd.patch
From: |
Akim Demaille |
Subject: |
13-fyi-kbd.patch |
Date: |
Mon, 01 Oct 2001 09:09:48 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* doc/autoconf.texi: Use @kbd for user input.
Always use `$' as shell prompt.
Index: doc/autoconf.texi
--- doc/autoconf.texi Fri, 28 Sep 2001 09:38:15 +0200 akim
+++ doc/autoconf.texi Sat, 29 Sep 2001 14:09:22 +0200 akim
@@ -1227,10 +1227,10 @@ AC_DEFUN([OUTER],
you get:
@example
-$ autoconf -Wcross
+$ @kbd{autoconf -Wcross}
configure.ac:8: warning: AC_TRY_RUN called without default \
to allow cross compiling
-$ autoconf -Wcross,error
+$ @kbd{autoconf -Wcross,error}
configure.ac:8: error: AC_TRY_RUN called without default \
to allow cross compiling
acgeneral.m4:3044: AC_TRY_RUN is expanded from...
@@ -1314,7 +1314,7 @@ escapes:
@example
@group
-$ autoconf -t AC_SUBST
+$ @kbd{autoconf -t AC_SUBST}
configure.ac:2:AC_SUBST:ECHO_C
configure.ac:2:AC_SUBST:ECHO_N
configure.ac:2:AC_SUBST:ECHO_T
@@ -1328,10 +1328,10 @@ configure.ac:2:AC_SUBST:ECHO_T
@example
@group
-$ cat configure.ac
+$ @kbd{cat configure.ac}
AC_DEFINE(This, is, [an
[example]])
-$ autoconf -t 'AC_DEFINE:@@: $@@
+$ @kbd{autoconf -t 'AC_DEFINE:@@: $@@}
*: $*
$: $%'
@@: [This],[is],[an
@@ -1347,7 +1347,7 @@ configure.ac:2:AC_SUBST:ECHO_T
@example
@group
-$ autoconf -t 'AC_SUBST:address@hidden"$1"@} = "$f:$l";'
+$ @kbd{autoconf -t 'AC_SUBST:address@hidden"$1"@} = "$f:$l";'}
address@hidden"ECHO_C"@} = "configure.ac:2";
address@hidden"ECHO_N"@} = "configure.ac:2";
address@hidden"ECHO_T"@} = "configure.ac:2";
@@ -1362,7 +1362,7 @@ configure.ac:2:AC_SUBST:ECHO_T
@example
@group
-$ autoconf -t 'AM_MISSING_PROG:address@hidden|:::::|@}*'
+$ @kbd{autoconf -t 'AM_MISSING_PROG:address@hidden|:::::|@}*'}
ACLOCAL|:::::|aclocal|:::::|$missing_dir
AUTOCONF|:::::|autoconf|:::::|$missing_dir
AUTOMAKE|:::::|automake|:::::|$missing_dir
@@ -5925,8 +5925,8 @@ substitute the variable @var{variable} i
@command{configure} runs. For instance:
@example
-$ ./configure --silent --config-cache
-$ CC=cc ./configure --silent --config-cache
+$ @kbd{./configure --silent --config-cache}
+$ @kbd{CC=cc ./configure --silent --config-cache}
configure: error: `CC' was not set in the previous run
configure: error: changes in the environment can compromise \
the build
@@ -5944,8 +5944,8 @@ configure: error: run `make distclean' a
line argument, including when no cache is used:
@example
-$ CC=/usr/bin/cc ./configure undeclared_var=raboof --silent
-$ ./config.status --recheck
+$ @kbd{CC=/usr/bin/cc ./configure undeclared_var=raboof --silent}
+$ @kbd{./config.status --recheck}
running /bin/sh ./configure undeclared_var=raboof --silent \
CC=/usr/bin/cc --no-create --no-recursion
@end example
@@ -7584,9 +7584,9 @@ @node Here-Documents
@example
@group
-$ cat <<EOF
+$ @kbd{cat <<EOF
> \" \\
-> EOF
+> EOF}
" \
@end group
@end example
@@ -7596,9 +7596,9 @@ @node Here-Documents
@example
@group
-bash-2.04$ cat <<EOF
+bash-2.04$ @kbd{cat <<EOF
> \" \\
-> EOF
+> EOF}
\" \
@end group
@end example
@@ -7663,11 +7663,11 @@ @node File Descriptors
@example
ULTRIX V4.4 (Rev. 69) System #31: Thu Aug 10 19:42:23 GMT 1995
UWS V4.4 (Rev. 11)
-$ eval 'echo matter >fullness' >void
+$ @kbd{eval 'echo matter >fullness' >void}
illegal io
-$ eval '(echo matter >fullness)' >void
+$ @kbd{eval '(echo matter >fullness)' >void}
illegal io
-$ (eval '(echo matter >fullness)') >void
+$ @kbd{(eval '(echo matter >fullness)') >void}
Ambiguous output redirect.
@end example
@@ -7688,19 +7688,19 @@ @node File Descriptors
if you meant to capture the standard-error output of the inner command:
@example
-$ ash -x -c '(eval "echo foo >&2") 2>stderr'
-$ cat stderr
+$ @kbd{ash -x -c '(eval "echo foo >&2") 2>stderr'}
+$ @kbd{cat stderr}
+ eval echo foo >&2
+ echo foo
foo
-$ bash -x -c '(eval "echo foo >&2") 2>stderr'
-$ cat stderr
+$ @kbd{bash -x -c '(eval "echo foo >&2") 2>stderr'}
+$ @kbd{cat stderr}
+ eval 'echo foo >&2'
++ echo foo
foo
-$ zsh -x -c '(eval "echo foo >&2") 2>stderr'
+$ @kbd{zsh -x -c '(eval "echo foo >&2") 2>stderr'}
@i{# Traces on startup files deleted here.}
-$ cat stderr
+$ @kbd{cat stderr}
+zsh:1> eval echo foo >&2
+zsh:1> echo foo
foo
@@ -7896,15 +7896,15 @@ @node Shell Substitutions
by running:
@example
-$ unset foo
-$ address@hidden'@}'@}
-$ echo $foo
+$ @kbd{unset foo}
+$ @address@hidden'@}'@}}
+$ @kbd{echo $foo}
@}
-$ address@hidden'@}' # no error; this hints to what the bug is
-$ echo $foo
+$ @address@hidden'@}' # no error; this hints to what the bug is}
+$ @kbd{echo $foo}
@}
-$ address@hidden'@}'@}
-$ echo $foo
+$ @address@hidden'@}'@}}
+$ @kbd{echo $foo}
@address@hidden
^ ugh!
@end example
@@ -7930,16 +7930,16 @@ @node Shell Substitutions
expands $var. Here are two means to make this shell confess its sins:
@example
-$ cat -v <<EOF
+$ @kbd{cat -v <<EOF
$var
-EOF
+EOF}
@end example
@noindent
and
@example
-$ set | grep '^var=' | cat -v
+$ @kbd{set | grep '^var=' | cat -v}
@end example
One classic incarnation of this bug is:
@@ -7989,9 +7989,9 @@ sub-shell to perform the command.
use @samp{test -z "`cd /`"} because the following can happen:
@example
-$ pwd
+$ @kbd{pwd}
/tmp
-$ test -n "`cd /`" && pwd
+$ @kbd{test -n "`cd /`" && pwd}
/
@end example
@@ -8007,18 +8007,18 @@ sub-shell to perform the command.
releases of Solaris don't support it:
@example
-$ showrev -c /bin/sh | grep version
+$ @kbd{showrev -c /bin/sh | grep version}
Command version: SunOS 5.8 Generic 109324-02 February 2001
-$ echo $(echo blah)
+$ @kbd{echo $(echo blah)}
syntax error: `(' unexpected
@end example
@noindent
nor does @sc{irix} 6.5's Bourne shell:
@example
-$ uname -a
+$ @kbd{uname -a}
IRIX firebird-image 6.5 07151432 IP22
-$ echo $(echo blah)
+$ @kbd{echo $(echo blah)}
$(echo blah)
@end example
@end table
@@ -8036,9 +8036,9 @@ @node Assignments
the status and propagates that of the last statement:
@example
-$ false || foo=bar; echo $?
+$ @kbd{false || foo=bar; echo $?}
1
-$ false || foo=`:`; echo $?
+$ @kbd{false || foo=`:`; echo $?}
0
@end example
@@ -8047,7 +8047,7 @@ @node Assignments
to 0 in any case:
@example
-$ foo=`exit 1`; echo $?
+$ @kbd{foo=`exit 1`; echo $?}
0
@end example
@@ -8117,12 +8117,12 @@ @node Special Shell Variables
leading dot:
@example
-zsh-3.1.6 % mkdir foo && (CDPATH=: cd foo)
+zsh-3.1.6$ @kbd{mkdir foo && (CDPATH=: cd foo)}
/tmp/foo
-zsh-3.1.6 % (CDPATH=:. cd foo)
+zsh-3.1.6$ @kbd{(CDPATH=:. cd foo)}
/tmp/foo
-zsh-3.1.6 % (CDPATH=.: cd foo)
-zsh-3.1.6 %
+zsh-3.1.6$ @kbd{(CDPATH=.: cd foo)}
+zsh-3.1.6$
@end example
@noindent
@@ -8133,9 +8133,9 @@ @node Special Shell Variables
same behavior:
@example
-bash-2.02 % mkdir foo && (CDPATH=: cd foo)
-bash-2.02 % (CDPATH=:. cd foo)
-bash-2.02 % (CDPATH=.: cd foo)
+bash-2.02$ @kbd{mkdir foo && (CDPATH=: cd foo)}
+bash-2.02$ @kbd{(CDPATH=:. cd foo)}
+bash-2.02$ @kbd{(CDPATH=.: cd foo)}
/tmp/foo
@end example
@@ -8203,7 +8203,7 @@ @node Special Shell Variables
@example
@group
-$ cat lineno
+$ @kbd{cat lineno}
echo 1. $LINENO
cat <<EOF
3. $LINENO
@@ -8213,7 +8213,7 @@ @node Special Shell Variables
eval 'echo 7. $LINENO'
@end group
@group
-$ ash lineno
+$ @kbd{ash lineno}
1.
3.
4.
@@ -8221,7 +8221,7 @@ @node Special Shell Variables
7.
@end group
@group
-$ bash-2.03 lineno
+$ @kbd{bash-2.03 lineno}
1. 1
3. 2
4. 2
@@ -8229,7 +8229,7 @@ @node Special Shell Variables
7. 1
@end group
@group
-$ zsh-3.1.9 lineno
+$ @kbd{zsh-3.1.9 lineno}
1. 1
3. 2
4. 2
@@ -8237,7 +8237,7 @@ @node Special Shell Variables
7. 7
@end group
@group
-$ pdksh-5.2.14 lineno
+$ @kbd{pdksh-5.2.14 lineno}
1. 1
3. 2
4. 2
@@ -8344,7 +8344,7 @@ @node Limitations of Builtins
handle backslashes in character classes:
@example
-bash-2.02$ case /tmp in [/\\]*) echo OK;; esac
+bash-2.02$ @kbd{case /tmp in [/\\]*) echo OK;; esac}
bash-2.02$
@end example
@@ -8354,9 +8354,9 @@ @node Limitations of Builtins
bug, always put the backslash first:
@example
-bash-2.02$ case '\TMP' in [\\/]*) echo OK;; esac
+bash-2.02$ @kbd{case '\TMP' in [\\/]*) echo OK;; esac}
OK
-bash-2.02$ case /tmp in [\\/]*) echo OK;; esac
+bash-2.02$ @kbd{case /tmp in [\\/]*) echo OK;; esac}
OK
@end example
@@ -8402,11 +8402,11 @@ this:
perform @samp{exit 0}.
@example
-bash-2.04$ foo=`exit 1` || echo fail
+bash-2.04$ @kbd{foo=`exit 1` || echo fail}
fail
-bash-2.04$ foo=`(exit 1)` || echo fail
+bash-2.04$ @kbd{foo=`(exit 1)` || echo fail}
fail
-bash-2.04$ foo=`(exit 1); exit` || echo fail
+bash-2.04$ @kbd{foo=`(exit 1); exit` || echo fail}
bash-2.04$
@end example
@@ -8517,7 +8517,7 @@ use:
There are shells that do not reset the exit status from an @command{if}:
@example
-$ if (exit 42); then true; fi; echo $?
+$ @kbd{if (exit 42); then true; fi; echo $?}
42
@end example
@@ -8599,7 +8599,7 @@ use:
operator:
@example
-$ test -n =
+$ @kbd{test -n =}
test: argument expected
@end example
@@ -8679,12 +8679,12 @@ test: argument expected
that the trap receives:
@example
-$ cat trap.sh
+$ @kbd{cat trap.sh}
trap 'echo $?' 0
(exit 42); exit 0
-$ zsh trap.sh
+$ @kbd{zsh trap.sh}
42
-$ bash trap.sh
+$ @kbd{bash trap.sh}
0
@end example
@@ -8697,10 +8697,10 @@ test: argument expected
by empty lines if the code is inside @command{trap}.
@example
-$ trap 'false
+$ @kbd{trap 'false}
echo $?' 0
-$ exit
+$ @kbd{exit}
0
@end example
@@ -8761,12 +8761,12 @@ @node Limitations of Usual Tools
@sc{gnu} awk will reject it:
@example
-$ gawk 'function die () @{ print "Aaaaarg!" @}
- BEGIN @{ die () @}'
+$ @kbd{gawk 'function die () @{ print "Aaaaarg!" @}
+ BEGIN @{ die () @}'}
gawk: cmd. line:2: BEGIN @{ die () @}
gawk: cmd. line:2: ^ parse error
-$ gawk 'function die () @{ print "Aaaaarg!" @}
- BEGIN @{ die() @}'
+$ @kbd{gawk 'function die () @{ print "Aaaaarg!" @}
+ BEGIN @{ die() @}'}
Aaaaarg!
@end example
@@ -8774,17 +8774,17 @@ gawk: cmd. line:2:
on arrays:
@example
-$ cat for.awk
+$ @kbd{cat for.awk}
END @{
arr["foo"] = 1
arr["bar"] = 1
for (i in arr)
print i
@}
-$ gawk -f for.awk </dev/null
+$ @kbd{gawk -f for.awk </dev/null}
foo
bar
-$ nawk -f for.awk </dev/null
+$ @kbd{nawk -f for.awk </dev/null}
bar
foo
@end example
@@ -8793,12 +8793,12 @@ gawk: cmd. line:2:
inner anchors:
@example
-$ echo xfoo | $AWK '/foo|^bar/ @{ print @}'
-$ echo bar | $AWK '/foo|^bar/ @{ print @}'
+$ @kbd{echo xfoo | $AWK '/foo|^bar/ @{ print @}'}
+$ @kbd{echo bar | $AWK '/foo|^bar/ @{ print @}'}
bar
-$ echo xfoo | $AWK '/^bar|foo/ @{ print @}'
+$ @kbd{echo xfoo | $AWK '/^bar|foo/ @{ print @}'}
xfoo
-$ echo bar | $AWK '/^bar|foo/ @{ print @}'
+$ @kbd{echo bar | $AWK '/^bar|foo/ @{ print @}'}
bar
@end example
@@ -8857,9 +8857,9 @@ gawk: cmd. line:2:
and exit with success:
@example
-$ uname -a
+$ @kbd{uname -a}
OSF1 medusa.sis.pasteur.fr V5.1 732 alpha
-$ date "+%s"
+$ @kbd{date "+%s"}
%s
@end example
@@ -8995,14 +8995,14 @@ example:
when parentheses are used!
@example
-$ val=`expr 'a' : 'a'`; echo "$?: $val"
+$ @kbd{val=`expr 'a' : 'a'`; echo "$?: $val"}
0: 1
-$ val=`expr 'a' : 'b'`; echo "$?: $val"
+$ @kbd{val=`expr 'a' : 'b'`; echo "$?: $val"}
1: 0
-$ val=`expr 'a' : '\(a\)'`; echo "?: $val"
+$ @kbd{val=`expr 'a' : '\(a\)'`; echo "?: $val"}
1: a
-$ val=`expr 'a' : '\(b\)'`; echo "?: $val"
+$ @kbd{val=`expr 'a' : '\(b\)'`; echo "?: $val"}
1: 0
@end example
@@ -9012,7 +9012,7 @@ example:
@command{sed}), since you may get twice the result. For instance
@example
-$ expr 'a' : '\(a\)' || echo 'a' | sed 's/^\(a\)$/\1/'
+$ @kbd{expr 'a' : '\(a\)' || echo 'a' | sed 's/^\(a\)$/\1/'}
@end example
@noindent
@@ -9031,8 +9031,8 @@ example:
instance on DU, and HP-UX 10.20 and HP-UX 11:
@example
-$ touch foo
-$ find . -name foo -exec echo "@address@hidden@address@hidden" \;
+$ @kbd{touch foo}
+$ @kbd{find . -name foo -exec echo "@address@hidden@address@hidden" \;}
@address@hidden@address@hidden
@end example
@@ -9115,7 +9115,7 @@ example:
1.4.2's, try to interpret the second as a command:
@example
-$ echo a | sed 's/x/x/;;s/x/x/'
+$ @kbd{echo a | sed 's/x/x/;;s/x/x/'}
sed: 1: "s/x/x/;;s/x/x/": invalid command code ;
@end example
@@ -9263,20 +9263,17 @@ @node Limitations of Make
NEWS-OS 4.2R.
@example
-$ cat Makefile
+$ @kbd{cat Makefile}
_am_include = #
_am_quote =
all:; @@echo this is test
-
-% make
+$ @kbd{make}
Make: Must be a separator on rules line 2. Stop.
-
-$ cat Makefile2
+$ @kbd{cat Makefile2}
am_include = #
am_quote =
all:; @@echo this is test
-
-$ make -f Makefile2
+$ @kbd{make -f Makefile2}
this is test
@end example
@@ -11273,7 +11270,7 @@ quoted:
Autoconf 2.13 simply ignores it:
@example
-$ autoconf-2.13; ./configure --silent
+$ @kbd{autoconf-2.13; ./configure --silent}
creating cache ./config.cache
configure: error: cannot find foo.h
$
@@ -11283,7 +11280,7 @@ configure: error: cannot find foo.h
while Autoconf 2.50 will produce a broken @file{configure}:
@example
-$ autoconf-2.50; ./configure --silent
+$ @kbd{autoconf-2.50; ./configure --silent}
configure: error: cannot find foo.h
./configure: exit: bad non-numeric arg `bailing'
./configure: exit: bad non-numeric arg `bailing'
@@ -11304,20 +11301,20 @@ configure: error: cannot find foo.h
including no less than... @code{AC_DEFUN} itself!
@example
-$ cat configure.in
+$ @kbd{cat configure.in}
AC_DEFUN([AC_PROG_INSTALL],
[# My own much better version
])
AC_INIT
AC_PROG_INSTALL
AC_OUTPUT
-$ autoconf-2.13
+$ @kbd{autoconf-2.13}
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_EPI
configure.in:1:AC_DEFUN([AC_PROG_INSTALL],
configure.in:5:AC_PROG_INSTALL
-$ autoconf-2.50
+$ @kbd{autoconf-2.50}
$
@end example
@@ -11342,11 +11339,11 @@ @node New Macros
complain, in its own words:
@example
-$ cat configure.in
+$ @kbd{cat configure.in}
AC_INIT
AM_TYPE_PTRDIFF_T
-$ aclocal-1.4
-$ autoconf
+$ @kbd{aclocal-1.4}
+$ @kbd{autoconf}
./aclocal.m4:17: error: m4_defn: undefined macro: _m4_divert_diversion
actypes.m4:289: AM_TYPE_PTRDIFF_T is expanded from...
./aclocal.m4:17: the top level
@@ -11360,17 +11357,17 @@ now: do not depend upon macros from Auto
to provide macros (but the one it requires by itself):
@example
-$ cat configure.in
+$ @kbd{cat configure.in}
AC_INIT
AM_TYPE_PTRDIFF_T
-$ rm aclocal.m4
-$ autoupdate
+$ @kbd{rm aclocal.m4}
+$ @kbd{autoupdate}
autoupdate: `configure.in' is updated
-$ cat configure.in
+$ @kbd{cat configure.in}
AC_INIT
AC_CHECK_TYPES([ptrdiff_t])
-$ aclocal-1.4
-$ autoconf
+$ @kbd{aclocal-1.4}
+$ @kbd{autoconf}
$
@end example
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 13-fyi-kbd.patch,
Akim Demaille <=