summaryrefslogtreecommitdiff
path: root/usr.bin/basename
AgeCommit message (Collapse)Author
2016-10-28Delete some useless setlocale(3) calls in /usr/bin, no functional change.Ingo Schwarze
Patches from Jan Stary <hans at stare dot cz>, tweaked by me and tb@. While here, apply some simple style improvements: Sort headers, static void __dead usage(), return from main(), zap case '?', drop /* NOTREACHED */, drop break after usage(), ... OK tb@ millert@
2015-12-24Use return rather than exit to enable the stack protector. Frommmcc
fritjof@alokat.org. ok tb@
2015-12-24Order includes. From fritjof@alokat.orgmmcc
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03even before it reaches getopt(), this program will never do more thanTheo de Raadt
talk to stdio. tame "stdio" is a no-brainer. reviewed a while ago by doug
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2005-04-12Special-case the old basename "" returns "" behaviour. Some peopleOtto Moerbeek
depend on it. ok millert@ jaredy@
2005-04-07- Reintroduce getopt(3) for option processing. POSIX requires tools thatOtto Moerbeek
take no options to recognize --. - Use basename(3) to do the groundwork, instead of a rolling our own. Visible changes in behaviour: basename "" now returns a dot instead of an empty line; pathnames longer than PATH_MAX will produce an error message. ok deraadt@ jaredy@ millert@
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-05Move manpage to appropriate directoryPaul Janzen
2000-03-04Many improvements and general cleanup/standardization.Aaron Campbell
1999-11-20/usr/bin/trail -> /usr/bin/tail, as suggested by rohee@Dug Song
1999-11-18basename /usr/bin/trail is "trail", not "ls"Dug Song
1999-07-19Xr their libc equivalents; form@vell.nsc.ruAaron Campbell
1999-07-03remove redundant .Pp macrosAaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-09-23usr.bin/ man page repairs, a - eAaron Campbell
1998-07-04split dirname and basename man pages; add dirnameTheo de Raadt
1998-07-04split dirname and basename man pagesTheo de Raadt
1997-11-15add DIAGNOSTICS header; msaitohTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-08-17Don't call getopt(3) since a) there are not switches and b) '-' isTodd C. Miller
a perfectly reasonable character to have in a pathname.
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt