diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-05-18 13:25:21 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-05-18 13:25:21 +0000 |
commit | cd64f03d92415002e889b7bd4356414ae828fd71 (patch) | |
tree | 3f5947ed9f280b7a70f4ff82a63bde2ef593a60f /bin/ksh/ksh.1 | |
parent | e6403cabe6a1e73c5b021b3b624119ea78f8a39d (diff) |
remove the alias type='whence -v' and replace it with
a buildin command, that just calls into c_whence().
This makes type look like the buildin in other shells and makes
things like system("'type' 'git'"); work.
With lots of suggestions and feedback from anton@, kn@ and jca@.
ok kn@ jca@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r-- | bin/ksh/ksh.1 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1 index ceb3bce1264..fe425f7c611 100644 --- a/bin/ksh/ksh.1 +++ b/bin/ksh/ksh.1 @@ -1,8 +1,8 @@ -.\" $OpenBSD: ksh.1,v 1.198 2018/02/06 15:13:32 schwarze Exp $ +.\" $OpenBSD: ksh.1,v 1.199 2018/05/18 13:25:20 benno Exp $ .\" .\" Public Domain .\" -.Dd $Mdocdate: February 6 2018 $ +.Dd $Mdocdate: May 18 2018 $ .Dt KSH 1 .Os .Sh NAME @@ -858,8 +858,6 @@ The following command aliases are defined automatically by the shell: .Ic r Ns ='fc -s' .It .Ic stop Ns ='kill -STOP' -.It -.Ic type Ns ='whence -v' .El .Pp Tracked aliases allow the shell to remember where it found a particular @@ -4075,6 +4073,11 @@ traps in functions are not yet implemented. .It Ic true A command that exits with a zero value. .Pp +.It Ic type +Short form of +.Ic whence Fl v +(see below). +.Pp .It Xo .Ic typeset .Oo |