summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2009-01-29pass "xerrok" status across the execution call stack to more closelyJared Yanovich
match what both POSIX and ksh.1 already describe in regards to set -e/errexit's behavior in determining when to exit from nonzero return values. specifically, the truth values tested as operands to `&&' and `||', as well as the resulting compound expression itself, along with the truth value resulting from a negated command (i.e. a pipeline prefixed `!'), should not make the shell exit when -e is in effect. issue reported by matthieu. testing matthieu, naddy. ok miod (earlier version), otto. man page ok jmc.
2009-01-28synchronize synopsis and usage.Igor Sobrado
2009-01-28remove some duplicate information from the description of -g: thisJason McIntyre
information is already provided further down the page; ok sobrado
2009-01-22document regexp supportMarc Espie
okay millert@, jmc@
2009-01-21Do not mention /dev/drum anymore, since we won't use it. With tweaks fromMiod Vallat
jmc@
2009-01-21fix the synopsis for chown(8)Igor Sobrado
2009-01-19replace standardized text concerning the exit values of applicationsIgor Sobrado
with the right mdoc macros.
2009-01-17Use libc qsort instead of private version. Tested by several people.Todd C. Miller
2009-01-06i saw the previous was wrong as soon as i committed it: put theJason McIntyre
built-in blurb in STANDARDS; we did once have a COMPATIBILITY section which we merged with STANDARDS, so i think this is appropriate. it certainly feels better than adding single sentences randomly to the end of text bodies.
2009-01-06- rearrange the text to read a little more sanelyJason McIntyre
- use standard Ds argument to list width
2009-01-06document, consistently, those apps which also exist as built-insJason McIntyre
on certain shells; do not try to document changes between the implementations, but at least warn of their existence; diff from Ingo Schwarze
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
ok jmc@
2008-12-30add a comment explaining the rather obscure decision when to recurseOtto Moerbeek
or not; ok millert@ pedro@
2008-12-29fix previous; e.g. ls /var/spool/mqueue as an oridinary user. okOtto Moerbeek
millert@ thib@
2008-12-27prevent line breaks in the middle of options.Igor Sobrado
jmc@ suggested replacing ".Op Ar file ..." with just ".Op Ar", and provided excellent feedback about where placing the .Bk/.Ek macros. ok jmc@
2008-12-24Kill a race condition which occurs when listing a directory containingOtto Moerbeek
an empty dir non-recursively. By not setting FTS_SKIP on the empty subdir, a next iteration of the fts_read loop recurses into the subdir, which might not be empty any more. Report by jacekm@, troublespot identified by pedro@; ok pedro@ millert@
2008-10-21various doc fixes related to how mv handles symlinksJason McIntyre
and file system traversal; this is work from Ingo Schwarze, tweaked a little by myself, and we borrowed half a sentence from the netbsd man page too; ok sobrado
2008-10-05the ellipsis allow more than one operand being specified.Igor Sobrado
ok jmc@
2008-10-03NUL not NULLTheo de Raadt
2008-10-01for the `g' and `G' commands, document that if no lines matchJason McIntyre
the regular expression then the current line number remains unchanged;
2008-10-01give a less confusing error message on bindresvport() failure; okOtto Moerbeek
matthieu@ millert@
2008-09-30Fix a problem in the last commit. Upon closer reading of POSIX, inTodd C. Miller
-p mode we only want to change the mode on directories we actually created.
2008-09-30Fix "-m mode" in conjunction with the -p flag. Also simplify the errorTodd C. Miller
handling. Closes PR 5908. OK deraadt@
2008-09-29more updates on which args do and do not mix (doc only, this time):Jason McIntyre
- list -f in the -cStu "exclusive group" (we already document that -f overrides these options) - note that our implementation of -f differs from posix - -k and -u do not override each other: those options are not used together ok sobrado
2008-09-06adapt to sha2(3) API changes; ok millert@Damien Miller
2008-09-04- make -ln and -nl combinations behave identically. currently -l overrides -n.Jason McIntyre
behaviour now similar to netbsd/freebsd/solaris. - make -gn and -ng combinations behave identically: long listing, numeric group ID, no user ID. currently -g overrides -n. behaviour now similar to netbsd/solaris. - allow -m and -x to override -1Cgln (and each other) if specified last. currently -m and -x can be overriden even if they are specified last. behaviour now similar to netbsd/freebsd. fixes PR 5785 from Jacek Masiulaniec. - update man page to reflect reality. ls.c diff based on Jacek Masiulaniec's diff from PR 5785, and extended by sobrado. this work is really a joint effort from sobrado and myself. i don't know about igor, but this particular diff has nearly killed me... ok millert otto
2008-08-11plug a memleak when freeing io redirection in commands.Jared Yanovich
the leaked memory is actually reclaimed when the command finishes but may grow until that happens, e.g. during command execution. ok phessler@. testing sobrado@ jmc@ oga@.
2008-07-29md5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options;Igor Sobrado
while here, some KNF improvements. based on a diff for compress(1) written by millert@, fixes from guenther@ and pyr@. ok millert@, pyr@; (for the manual page tweaks) jmc@
2008-07-23fix stack abuse in the `time' commmand, using alloc()'d memory instead.Jared Yanovich
reported by Thorsten Glaser, thanks. ok millert@, earlier version miod@
2008-07-21Extra sanity checking for afree(); OK deraadt@ and pvalchev@Todd C. Miller
2008-07-18remove unnessasary cast.Kevin Lo
ok millert@
2008-07-12Fix a strlcpy() bound.Miod Vallat
2008-07-05ksh starting as root will refuse to import a PS1 prompt unless itDamien Miller
contains a '#' character. Make it also accept the \$ PS1 sequence (which is supposed to automagically be $ or # depending on the user running the shell) unless ksh has been started in sh-compatibility mode. pointed out by millert@ when I asked why my SUDO_PS1 was not being honoured; ok millert@
2008-07-03fix inifinite loop with set -o csh-history and !<space> as input.Otto Moerbeek
report and testing by david@; ok millert@ jaredy@
2008-06-17better description of what ps without arguments does;Jason McIntyre
from Pierre Riteau ok otto
2008-06-11(sorry pval) some missing -j bits;Jason McIntyre
2008-06-11Add tar -j option that calls bzip2 for compress/decompress. RequiresPeter Valchev
you to install the bzip2 pkg (or add bzip2 in another way). ok millert@ otto@ deraadt@ and 'many others'@ man page tweak from jmc@
2008-06-10do not ask the "override?" question if access fails for other resaons thanOtto Moerbeek
EACCES. From Tim van der Molen; ok millert@ ray@
2008-06-08Prevent a segmentation fault when ed receives a signal while being inTobias Stoeckmann
getpass(). With input by and ok otto
2008-05-28write cpio_usage() in a way consistent with pax_usage() and tar_usage();Igor Sobrado
wrap options around to fill out the 80 columns; spacing. tweaked by jsing@, thank you very much! ok jsing@
2008-05-28In -f mode, don't print a warning if source and target already pointTodd C. Miller
to the same inode. This is consistent with other implementations. OK deraadt@ miod@ ray@
2008-05-28add a description for -D and -T (taken from NetBSD's rmail(8));Igor Sobrado
use the right capitalization for "sendmail". tweaks by jmc@ and jsing@, thanks! ok jmc@, jsing@, millert@
2008-05-26get the argument name right; from Jacek MasiulaniecJason McIntyre
2008-05-20cast pointer arithmetic to unsigned so we can behave correctly onFederico G. Schwindt
underflows. fixes fc -l 1 in my box where line is 1667511151. krw@ ok.
2008-05-17documentation tweaks.Igor Sobrado
ok (some time ago) jmc@
2008-05-08documentation tweaks.Igor Sobrado
2008-05-06when pax is running in -u mode, and no files are beeing updated becauseHenning Brauer
not one changed, we should not exit with an error but zero to indicate success (matches solaris behaviour). need to track wether files were skipped because of the -u checks for that and take that into account later when taking the exit code decision. ok theo, comments from otto and miod
2008-04-21Initialize the correct variable in HUP handler if ed.hup in currentTobias Stoeckmann
directory cannot be written and ~/ed.hup path has to be built up. Also pay special care that HOME is an absolute path name. With input by millert. ok deraadt, millert
2008-04-16mkfifo makes fifos, not directories; from Ben CalvertJason McIntyre
while here, make the description of -m more consistent for mkdir, mkfifo, and mknod. add a touch of .Ex for mkdir too.
2008-03-24- extern.h is already included by ps.h, so zap it.Jasper Lievisse Adriaanse
from Jacek Masiulaniec, via ray@ ok ray@