more on the cat
This commit is contained in:
parent
06c6be0a70
commit
2c59cc6089
11
mksh.1
11
mksh.1
@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.236 2010/08/28 17:21:44 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.237 2010/08/28 21:22:24 tg Exp $
|
||||||
.\" $OpenBSD: ksh.1,v 1.136 2010/07/15 20:04:35 schwarze Exp $
|
.\" $OpenBSD: ksh.1,v 1.136 2010/07/15 20:04:35 schwarze Exp $
|
||||||
.\"-
|
.\"-
|
||||||
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||||
@ -1224,8 +1224,7 @@ is interpreted to mean substitute the contents of
|
|||||||
Note that
|
Note that
|
||||||
.Ic $(\*(Ltfoo)
|
.Ic $(\*(Ltfoo)
|
||||||
has the same effect as
|
has the same effect as
|
||||||
.Ic $(cat foo) ,
|
.Ic $(cat foo) .
|
||||||
but it is carried out more efficiently because no process is started.
|
|
||||||
.Pp
|
.Pp
|
||||||
.Sy Note :
|
.Sy Note :
|
||||||
.Pf $( Ns Ar command Ns \&)
|
.Pf $( Ns Ar command Ns \&)
|
||||||
@ -2327,7 +2326,11 @@ statements, etc.
|
|||||||
any redirections must appear at the end.
|
any redirections must appear at the end.
|
||||||
Redirections are processed after
|
Redirections are processed after
|
||||||
pipelines are created and in the order they are given, so the following
|
pipelines are created and in the order they are given, so the following
|
||||||
will print an error with a line number prepended to it:
|
will print an error with a line number prepended to it, if you have a
|
||||||
|
.Xr cat 1
|
||||||
|
that supports the
|
||||||
|
.Fl n
|
||||||
|
option:
|
||||||
.Pp
|
.Pp
|
||||||
.D1 $ cat /foo/bar 2\*(Gt&1 \*(Gt/dev/null \*(Ba cat \-n
|
.D1 $ cat /foo/bar 2\*(Gt&1 \*(Gt/dev/null \*(Ba cat \-n
|
||||||
.Pp
|
.Pp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user