Commit Graph

40 Commits

Author SHA1 Message Date
tjr
5edd8af490 Handle relative and absolute pathnames (anything with a `/' in it) in the same
way as execve(2), and the old perl which(1).

PR:		35718
2002-06-30 06:02:39 +00:00
tjr
825f2f17f4 Treat empty PATH elements as "." for tradition and consistency with the
old Perl which(1) script.

PR:		35719
2002-06-30 05:48:50 +00:00
ru
637500863c Give a C rewriter the necessary credit.
Requested by:	Daniel Papasian <dpapasia@andrew.cmu.edu>
2002-06-21 06:43:48 +00:00
ru
c9868243fa which(1) was once a Perl script. 2002-05-30 08:33:13 +00:00
charnier
ad8a79e6a5 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
wosch
3adb054e5a Off by one error in checking max file name length. 2002-03-09 15:30:42 +00:00
markm
1f1707d892 Use FBSDID(), WARNS=2 fix.
Mkaefile does not use WARNS=2 beacuse this will be made default.
2001-12-11 22:27:26 +00:00
ru
e8e5635e4a Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
36f138439b mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
ru
0d1334ca0c mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
green
408b822492 Get rid of the old version. 2000-08-29 23:38:12 +00:00
green
5cf3170b6b Use a C version of which(1).
Submitted by:	Dan Papasian <bugg@bugg.strangled.net>
Reviewed by:	jhb
2000-08-29 23:30:52 +00:00
sheldonh
858c111779 Add a missing .El macro. 2000-01-14 10:47:54 +00:00
sheldonh
d003c4a860 Correct some hard sentence breaks. Only those surrounding the previous
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.

Reported by:	bde
1999-09-14 11:46:04 +00:00
sheldonh
4000b20086 Improve shell documentation:
* Consistently misspell built-in as builtin.

* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
  builtin commands for which no standalone utility exists.  These MLINKS
  replace those that were created for csh(1).

* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
  as well as to the manpages of standalone utilities which are supported
  as shell builtin commands in at least one of the shells. In such
  manpages, explain that similar functionality may be provided as a
  shell builtin command.

* Improve sh(1)'s description of the cd builtin command. Csh(1) already
  describes it adequately. Replace the cd(1) manpage with a builtin(1)
  MLINKS link.

* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
  Ic instead of Xr for shell builtin commands.

* Undo English contractions.

Reviewed by:	mpp, rgrimes
1999-09-08 15:40:46 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
wosch
09f406ace9 Added myself as maintainer. 1999-02-09 17:23:03 +00:00
jkoshy
ff464ca1d1 Sort SEE ALSO section alphabetically. 1998-05-22 11:09:01 +00:00
jkoshy
715f414038 Add cross references for find(1), locate(1), whereis(1) and which(1).
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
1998-05-15 11:22:42 +00:00
charnier
409a50cddf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
helbig
53c968c454 Search for proper executables, ignore directories 1998-02-01 20:01:29 +00:00
helbig
197f0b69d7 Don't ignore empty components of $PATH, i. e. colon at the beginning,
the end or two successive colons.

Reviewed and improved by wosch.
1998-01-02 13:46:25 +00:00
charnier
80e0f83375 Cosmetic in usage string. Mdocify author section. 1997-08-26 11:13:39 +00:00
peter
f390c26dd9 Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
d7ad38d757 fix perl indention style 1996-10-27 15:50:40 +00:00
wosch
0210175107 sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
mpp
b4aab8b6f6 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
wosch
fc84e0db6d replace shell comment char `#'' with troff comment command `.\"'' 1996-08-17 23:31:38 +00:00
peter
c3f352d4ad This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
asami
b5a0481510 Submitted by: Wolfram Schneider <w@cs.tu-berlin.de>
The currently (1995/07/31 04:22:07) implemented if (-x "$prog") {
works only if you have '.' in your $PATH variable.
1995-08-02 07:30:37 +00:00
asami
1fd348a456 Submitted by: Torbjorn Granlund <tege@matematik.su.se>
* /usr/bin/which doesn't work if a complete path is passed to it.  This is
  incompatible with other flavours of Unix, Here is a suggested patch:
1995-07-31 04:22:07 +00:00
bde
4325752c55 Change install' to ${INSTALL}' as usual.
Remove the extra slash in ${DESTDIR}/${BINDIR}.
1995-07-25 00:22:50 +00:00
jkh
a86f9e0ecf Unify the copyright notice. 1995-01-30 22:21:29 +00:00
asami
27a6b3e94f Cleanup.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-01-30 17:49:19 +00:00
asami
afd6259b60 Add a -s' flag for silent' processing. Make the script return 0 for
success and 1 for failure.  Describe the options in manpage.
1995-01-28 17:35:56 +00:00
jkh
36ea0db5c6 Put in a much less bogus Makefile on advice from Bruce. 1995-01-28 06:01:18 +00:00
jkh
17c2207d91 Use the better perl script version of which submitted by Wolfram.
Submitted by:	Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-01-26 21:49:54 +00:00
jkh
00f6b2130e Bring in Joerg's which command. It's small, it's simple, it will stop
people (like me! :) from whining!
Submitted by:	joerg
1995-01-25 19:18:33 +00:00