summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2015-09-11delete bogus escaping from ellipsis to forestall cargo cult effectsIngo Schwarze
2015-09-11Remove redundant assignmentPhilip Guenther
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
2015-09-10Replace newline and space defines by "\n" and " " directly, from MichaelNicholas Marriott
McConville. ok millert
2015-09-10Remove INT32 define and just use int, from Martijn van Duren and MichaelNicholas Marriott
McConville. ok deraadt
2015-09-10Kill another superfluous variable initialization; from Michael McConville.Jeremie Courreges-Anglas
2015-09-08Remove superfluous variable initialization; from Michael McConville.Jeremie Courreges-Anglas
2015-09-05Add brackets to clarify assignments that are the result of a test operator.Jonathan Gray
ok deraadt@ looks correct millert@ jung@
2015-09-01no need to check for null argv anymore. from Martijn van DurenTed Unangst
ok deraadt
2015-09-01remove casts and null checks before free. from Michael McConvilleTed Unangst
ok deraadt
2015-08-24In fastcopy(), do the required malloc() before opening input or output file.Philip Guenther
problem noted by Martijn van Duren (martijn987 (at) gmail.com)
2015-08-19Don't re-include headers pulled by "sh.h". (I actually don't like this .hTheo de Raadt
pulls in system .h pattern)
2015-08-11avoid casts of malloc() if stdlib.h is presentTheo de Raadt
2015-07-30Fix the baskslash-escaped codes ('\nnn') usage in PS1.Vadim Zhukov
Report and initial proposal from Vadim Ushakov on bugs@, tweaked by me. okay deraadt@
2015-07-28remove gratuitous castsTheo de Raadt
2015-07-20Zero-pad the seconds in the output of 'time' to make columns line upPhilip Guenther
ok pirofti@ halex@ krw@ deraadt@ jca@ doug@
2015-07-19show tame flagTheo de Raadt
2015-07-14use atomic operations on sig_atomic_t variables inside the signal handlers,Theo de Raadt
rather than sharing one variable unsafely. ok millert
2015-07-11XXX annotate another signal raceTheo de Raadt
2015-07-04Use "alternation" consistentlyfeinerer
ok jmc@
2015-06-29After removing the p_swtime from the kernel, ps always printed 0.0Alexander Bluhm
as %cpu time. Remove the calculation in ps that includes the process lifetime. Just print the p_pctcpu value, that was done before when ps was called with -C. Keep -C as a no-op for existing scripts. OK millert@
2015-06-25Put fts_close() where missing.Masao Uebayashi
Not bugs in short-lived commands that call exit() -> _exit() immediately, but for idempotency. Originally found in ls(1) by Valgrind. Changes for other commands are from deraadt@. Reviewed by me, tested in snapshots. OK deraadt@
2015-06-24Apply normal handling to atfd+path args to chflagsat(2)Philip Guenther
Problem noted by patrick keshishian (sidster (at) boxsoft.com) ok deraadt@
2015-06-22theo buehler points out that posix specifies a prompt defined using -pJason McIntyre
be reinstated when toggled off then on again; this seems to make sense, but posix is not explicit. we know that gnu ed and freebsd do reinstate the user defined prompt, but we do not. no one has yet stepped up to change this, so i'm adding a note to this effect until such a time as we do/ i have not tweaked the text for -p or "P" to allow for an easy back out if behaviour does change;
2015-06-17stray char jumped inTheo de Raadt
2015-06-17delete completely bogus (floating? was there an old variable declTheo de Raadt
in the past?) comment about FILEC noted by Peter Brottveit Bock
2015-06-17remove -DFILEC; code does not compile for the -UFILEC case, and anyways,Theo de Raadt
who wants csh without FILEC?? from Peter Brottveit Bock, but redone using unifdef
2015-06-03better description of internal copyn() functionTheo de Raadt
2015-05-18Make TAPE=- mean stdout in tarczarkoff
Some scripts and GUI ssh clients assume that tar writes to standard output by default. This changes allows enforcing such behavior by setting TAPE="-" in user profile. Also, this makes parsing argument to "-f" option and contents of TAPE environment variable consistent. OK guenther@, jmc@ and sthen@
2015-05-07Whoops; missed updating a setfile() call.Philip Guenther
problem reported dcoppa; ok millert@
2015-05-04lightly document the posix option and POSIXLY_CORRECT; will sketch outJason McIntyre
in more detail once i get my head round them...
2015-05-03Preserve times to nanosecond precision instead of just microsecond.Philip Guenther
Prefer to set attributes by fd for regular files, and not follwing symlinks for others. ok brynet@ millert@
2015-05-03struct usave is unused, and eproc is gone; delete the former andPhilip Guenther
stop referencing them in comments
2015-04-30reapply the rules of english to the option keywords: i was persuaded to undo itJason McIntyre
because the option names are case sensitive, but it just looks awful. so expect just a little more from the reader...
2015-04-24improve wording.Igor Sobrado
ok jmc@
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-04-17Use getint() instead of intval() for parsing the columns variable,Theo de Raadt
allowing the addition of more accurate bounds and garbage checks. ok millert
2015-04-17FALLTHROUGH in getopt is incorrect. While here use strtonumTheo de Raadt
to parse tz_minuteswest. ok millert
2015-04-09kflag and wflag don't need to be counters; wflag only needs to know ifOkan Demirmen
greater than 0 for its one test case. ok deraadt
2015-03-31both rpe and zhuk pointed out some problems with my if/elf template.Jason McIntyre
zhuk suggested using "condition" rather than command, and this commit reworks the loop/conditional section to do that; ok zhuk rpe
2015-03-30on zhuk's advice, don;t talk about null: posix uses null and emptyJason McIntyre
interchangeably, but we've stuck with empty; while here, sneak in an otherwsie -> otherwise
2015-03-27clarity fix from zhuk;Jason McIntyre
2015-03-26a little wording tweak;Jason McIntyre
2015-03-26various fixes from rpe;Jason McIntyre
2015-03-26from zhuk: in the for loop, show "in word ..." as optional;Jason McIntyre
2015-03-26from zhuk: sequential and asynchronous lists may take only one item;Jason McIntyre
2015-03-26rework the section on when different types of command are processed;Jason McIntyre
zhuk pointed out the flaws in my original text, and has found many more since;
2015-03-25Bind the Delete key (ESC[3~) to delete-char-forwardJeremie Courreges-Anglas
ok mpi@
2015-03-22rev 1.44 accidentally changed ar_close() to give cpio the same output as pax.Philip Guenther
Adjust the conditions to correct that. ok millert@
2015-03-19Fix IFS description. May be polished further when all consequences ofVadim Zhukov
following "null is the same as empty" from POSIX are investigated. okay jmc@
2015-03-19Make it clear that it's the line who shouldn't be empty, and not theVadim Zhukov
command history. This version comes from jmc@ together with his okay.