summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2013-06-10POSIX specifies that for an AND/OR list, only the last command'sTodd C. Miller
exit status matters for "set -e". Revert the part of revision 1.49 that always sets xerrok for AND/OR. This makes sh/ksh pass the updated regress tests. OK espie@ jca@
2013-06-03for var in; do ... shouldn't be interpreted as for var; do ...Jeremie Courreges-Anglas
Fix by returning an empty token list instead of NULL to consumers. Brings base ksh more in line with POSIX.
2013-06-03add : to special chars.Ted Unangst
identical diffs from plhk sdf.org and leva ecentrum.hu. ok deraadt.
2013-06-01Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. PatchDarren Tucker
from Nathan Osman via bz#2085. ok deraadt.
2013-06-01fiddle with the NO_CONV code to allow notrunc and noerror to still work.Ted Unangst
ok halex
2013-06-01consolidate ifdef blocks by moving a variableTed Unangst
2013-05-30Fix column padding of inode numbers and block counts >2^32, as well asPhilip Guenther
display of directory block totals >2^32 ok tedu@
2013-05-25Fix typo. From Caspar Schutijser via tech@.lum
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2013-04-23handle large ino_tTheo de Raadt
2013-04-23handle large ino_t; ok millertTheo de Raadt
2013-04-19handle long long time_tTheo de Raadt
ok millert tedu
2013-04-19Add support for printing long long (%lld). OK deraadt@Todd C. Miller
2013-04-16handle larger tv_sec typesTheo de Raadt
2013-04-16handle larger time_t typesTheo de Raadt
2013-04-16remove unneccessary time_t * castTheo de Raadt
2013-04-16Use utimensat() and futimens() instead of utimes() and futimes().Todd C. Miller
This lets us use UTIME_OMIT instead of having to lstat() the file when we want to preserve one of the times. Remove casts to long for tv_sec to prepare for upcoming time_t changes. OK deraadt@
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
2013-04-11The tweaks I suggested to the previous diff resulted in the typeflagPhilip Guenther
being checked after it was overwritten by the next block read in. Eliminate the argument aliasing that led to this being overlooked by passing rd_xheader() the size and typeflag directly. problem discovery and ok fgsch@
2013-04-09Add extended header support for ustar. Currently only path and linkpath areFederico G. Schwindt
handled. input from zhuk and guenther. tested by zhuk and sthen on a bulk. ok guenther.
2013-04-05SECONDS is, in a highly theoretical way, not y2k38 safe. comment it.Ted Unangst
2013-04-03LFS option is long gonePhilip Guenther
2013-04-02Revert rev 1.21 to fix a race condition where multiple mkdir -p's tryingChristian Weisgerber
to create overlapping paths in parallel could error out. ok millert@
2013-03-30Return an exit code of 1 if the file cannot be opened (e.g. file doesLawrence Teo
not exist), or if there is an error reading the file stream. From Patrik Lundin, thanks! ok deraadt
2013-03-28Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /Nicholas Marriott
-1 == INT_MIN and % -1 == 0. ok matthew deraadt
2013-03-28Don't die with SIGFPE on LONG_MIN / -1 or % -1. Instead make LONG_MIN /Nicholas Marriott
-1 == LONG_MIN and % -1 == 0. ok matthew deraadt
2013-03-27Enable support for write_opt=nodir for ustar archives which helps to fixVadim Zhukov
issues with some crappy tar archive readers out there that rely on the fact that directory entries ends up with "/" when created by GNU Tar, and now I'm finishing this commit message by mentioning people who gave input and okays: deraadt@ millert@ jmc@
2013-03-23wchan is no longer exposed, just check if wmesg is not empty.Ted Unangst
(wmesg hasn't itself been a pointer since conversion to kinfo_proc.) noticed by sthen. ok deraadt jsing millert sthen
2013-03-20Remove bogus #if 0'd code. As the comment says, POSIX doesn't need this.Todd C. Miller
OK martynas@
2013-03-18Keep documentation in sync with reality and update binding examples.Martin Pieuchot
This should have been part of the keybinding rewrote when support for multi-character sequences has been added. Pointed out by mikeb@
2013-03-12Add support for the -L and -P options.Philip Guenther
Based on a patch from Kent R. Spillner (kspillner (at) acm.org) ok jmc@ millert@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-03Fix quoting in word part of ${var+word} (and similar) when entire thingPhilip Guenther
is quoted or in a here-doc. Patch from Alexander Polakov (plhk (at) sdf.org). ok mpi@ jung@
2013-01-21revert the tweak part of the last commit which, apart from theAlexander Hall
questionable functionality of being able to expand environment variables that did not match a filename, preserved the annoyance of having stuff like "~/nonexistant" expanded to "~/nonexistant\* " ok stsp@ mpi@
2013-01-20Fix backslash escaping during filename tab-completion in ksh.Stefan Sperling
Diff originally submitted by Alexander Polakov, with a small tweak from me to avoid breaking tab-completion of environment variables (problem pointed out by bentley). ok sthen halex mpi
2013-01-18command-line (adj.) -> command line (n.);Jason McIntyre
2013-01-17remove some uesless Pp;Jason McIntyre
2013-01-15tidyMarc Espie
okay miod@
2012-12-04remove sunos backwards compatTheo de Raadt
ok guenther
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
ok guenther
2012-12-04remove sunos backwards compatTheo de Raadt
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2012-09-22last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-10fake a sigwinch after each job, so if the terminal changes size,Ted Unangst
we'll notice and update
2012-09-06Avoid modifying argv when building argv for $* and $@ since it willTodd C. Miller
affect ps output. This can happen when command line options are specified, e.g. "sh -c command". Based on a diff from espie@ OK espie@
2012-09-05backout, Todd's version may be cleaner, but it's also wrong.Marc Espie
2012-09-05sh -c should not munge argv[].Marc Espie
This fixes ps -ww output. joint work by millert@ and me@. okay otto@, deraadt@ "feel free to commit my version" millert@
2012-09-05overwrite with random stream; a repeating chunk of random data isn'tChristian Weisgerber
random at all ok tedu@
2012-09-05use "MS-DOS", for consistency with other docs;Jason McIntyre