summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2016-01-13fix exit status on pledge fail, eval here should be 2.Gleydson Soares
OK tb@
2016-01-10Partial revert: put back the file fmt.c.Ingo Schwarze
It's no longer used by ps(1), but w(1) reaches around to it. Cluestick applied by deraadt@.
2016-01-10UTF-8 support:Ingo Schwarze
In a UTF-8 locale, columnate correctly and replace valid, but non- printable characters with the Unicode replacement character U+FFFD. No change in the C/POSIX locale, and no change for invalid bytes. Grand total, the code becomes shorter by almost 30 lines. Feedback from czarkoff@, OK millert@.
2016-01-09Replace "function call" with "function" when referring to a functionmmcc
(well, a syscall, but this is the established practice) in the general sense. ok jmc@
2016-01-08Next step in UTF-8 support:Ingo Schwarze
1. Improve all functions involving words by allowing non-ASCII characters to be part of words. 2. Allow insertion of non-ASCII characters without screwing up the display, by backing up to the start byte after inserting a continuation byte, and starting to re-print there. 3. Fix forward movement which i didn't get quite right in my previous commit: Always advance to a start byte, never to a final continuation byte, or the next insertion would split the character in the middle. OK mpi@
2016-01-07need to increase INT_MAX to 64 bits too. from Nathan HolsteinTed Unangst
2016-01-06use int64_t for arithmetic. 64 bits ought to be enough for anyone.Ted Unangst
ok deraadt millert schwarze
2016-01-01don't declar main. from Michal MazurekTed Unangst
2015-12-31Document the -h option for chmod and chflags, rewording the chgrp(1) andPhilip Guenther
chown(8) manpages to be consistent and clearer about it as well.
2015-12-30add another combo for home/end keys that works in tmux.Ted Unangst
ok bmercer gsoares nicm sthen
2015-12-30rename a few variables/functions to avoid shadowingTed Unangst
2015-12-30rename global "e" to genv to avoid accidental shadowing and aliasing.Ted Unangst
ok millert nicm tb
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-12-29Remove reference to $ERRNO, which was been unimplemented for >= 19mmcc
years. From Michael Reed. ok halex@
2015-12-27Tweak comment: we now always make a copy of argv.Jeremie Courreges-Anglas
ok halex@
2015-12-27unconditionally duplicate the argv array on initialization, to make itAlexander Hall
resilient against being altered by a subsequent shift operation tweak and ok semarie@
2015-12-27remove unused variableCharles Longeau
ok tedu@
2015-12-26remove special characters; diff from michael reedJason McIntyre
2015-12-26Set the times, mode, and flags on symlinks when doing cp -p (or mv acrossPhilip Guenther
filesystems) problem noted by Carsten Kunze (carsten.kunze (at) arcor.de)
2015-12-26Replace handrolled xfree() function by directly using free(3)mestre
OK mmcc@
2015-12-24More adress -> addressmmcc
2015-12-22Assign pointer variables to NULL rather than 0. No functional change.mmcc
2015-12-22Remove a needless allocation cast. No binary change.mmcc
2015-12-21Replace an ugly bit of pointer arithmetic with a conditional expression.mmcc
"seems sound" deraadt@
2015-12-16Replace "tame" by "pledge" in a comment.tb
2015-12-14Move system headers from sh.h to those files that actually need them.tb
ok mmcc@ a while ago
2015-12-14Remove a superfluous macro. No binary change. ok tb@mmcc
2015-12-10In emacs command-line editing mode, make sure that moving left andIngo Schwarze
right can only move by whole characters, not into the middle of a character, and that deleting characters can only delete characters whole, not individual bytes out of characters. Based on parts of a patch by Frederic Nowak <fnwk at mailbox dot org>, tweaked by me. OK tedu@ semarie@ mpi@
2015-12-09Remove NULL-check before free(). ok tb@mmcc
2015-12-06Remove a 250-line catalog of AT&T ksh bugs. ok tedummcc
2015-12-06pledge "dpath" to allow creation of nodes via mkfifo(2) and mknod(2)Theo de Raadt
NOTE: dpath requires a fairly new kernel ok semarie
2015-12-06Use __progname instead of manually handling argv[0].Tobias Stoeckmann
ok deraadt, mmcc, tedu
2015-12-05Remove some more pdksh-specific stuff and references to files that nommcc
longer exist.
2015-12-05Remove descriptions of files that no longer exist.mmcc
2015-12-05Remove needless reference to LEGAL, which is likely outdated itself.mmcc
2015-12-05Remove some bug report guidelines from pdksh that aren't relevant to us.mmcc
2015-12-02comment typommcc
2015-12-01Support UTF-8: use wcwidth(3) for column adjustment and replaceIngo Schwarze
non-printable Unicode codepoints and invalid bytes with ASCII question marks. No change for the SMALL version. Using ideas developed by tedu@, phessler@, bentley@ and feedback from many. OK yasuoka@ czarkoff@ sthen@.
2015-11-27the rm code in mv inherited pledge from rm. it shoud be safe, but thereTed Unangst
are cases when it is too strict. after pledge() we continue to run some of the cp code which requires a very broad set of permissions. remove pledge entirely for now, pending a complete analysis of needs.
2015-11-27Use strlcpy to copy strings in struct mount, not memmove. AvoidsTodd C. Miller
reading past the end of a buffer. Problem found and OK jsg@
2015-11-24Revert previous tweak, pending a more complete rewording. Discussed withmmcc
halex@, sthen@, jmc@.
2015-11-22This man page uses "Note that" profusely, which is generally consideredmmcc
bad writing style. Also, add a paragraph break and split up a megasentence.
2015-11-22Don't use pdksh for self-reference and remove needless historicalmmcc
context.
2015-11-22Remove commented-out BUGS section that directs reports to long-extinctmmcc
upstream.
2015-11-21"one" -> "one or more"mmcc
2015-11-20honestly i think you should just zap that paragraph - it doesn;t maketb
sense to document that posix more or less says something should happen, and that it does. jmc
2015-11-20Cannot pledge bottom half of setting, because of the ioctl backingTheo de Raadt
"extproc", "ostart" and "ostop" are not allowed (yet?)
2015-11-20KNFTheo de Raadt
2015-11-20remove unused prototypetb
ok mmcc@
2015-11-20make ed restore the user defined prompt (specified with -p) when it was turnedtb
off and then on again with 'P'. ok daniel@