summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2016-10-26Document LC_CTYPE.Ingo Schwarze
The lack of this entry was reported by Jan Stary <hans at stare dot cz>. OK czarkoff@ jmc@
2016-10-24Unify wording for LC_CTYPE in ENVIRONMENT:Ingo Schwarze
* Consistently use "character encoding locale" as suggested by stsp@. * Resolve various gratuitious wording variations. OK jmc@.
2016-10-19Make the description of COLUMNS a bit more readable.Ingo Schwarze
Triggered by a different patch from Michal Mazurek. Joint work by tb@, jmc@, and tedu@, but no one ever committed it.
2016-10-19Delete useless setlocale(3) in src/bin/.Ingo Schwarze
Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK millert@.
2016-10-17simplify implementation of the '$' command, no functional change;Ingo Schwarze
OK nicm@ tb@ czarkoff@
2016-10-17resolve code duplication in domove() for the commands: b B w WIngo Schwarze
no functional change; suggested by tb@
2016-10-17No need to inspect LC_CTYPE:Ingo Schwarze
* It was only used in vi input mode. * No functional change in case of set -o vi-show8. * No functional change if LC_CTYPE is set to UTF-8. * More robust for the default of LC_CTYPE=C on a UTF-8 xterm. Behaviour changes for the combination LC_CTYPE=C with set +o vi-show8 on non-UTF-8 terminals, but that combination is useless and dangerous with or without this patch. If you want to edit individual raw non-ASCII non-UTF-8 bytes on the shell command line, always use set -o vi-show8. (Besides, i doubt that you actually want to do that; better use a real hex editor in the first place.) OK czarkoff@.
2016-10-17Make sure the cursor goes to the first byte of a UTF-8 characterIngo Schwarze
and not to a continuation byte for these commands: b B e E w W | Let {e,E}ndword return the position after the word because that is easier to handle in the caller. OK tb@ czarkoff@
2016-10-15remove the "in the future" notes from the past;Jason McIntyre
from ray lai
2016-10-14Correct description of the "bind" builtin command.Ingo Schwarze
jmc@ finds the key binding stuff "disgusting" (i can't argue with that) and doesn't want to comment on the content, but agrees with the wording.
2016-10-14delete useless setlocale(3);Ingo Schwarze
noticed by Jan Stary <hans at stare dot cz>; return from main while here; feedback and OK tb@, OK martijn@
2016-10-11Partial UTF-8 line editing support for ksh(1) vi input mode;Ingo Schwarze
so far, it covers these commands: a h i l x / This is an isu8cont()-based hack similar in style to what i did in emacs input mode, but less elegant and slightly more intrusive because the vi mode code is much more ugly and less straightforward than the emacs mode code. This one required partial rewrites of a few helper functions, and comments were added while there. This is not perfect, but hopefully reduces people's cursing until a more rigorous solution can be devised (much) later. Some polishing may be useful in tree, in particular adding utf8cont() support to a few missing commands. Mostly written shortly after Christmas 2015. Reminded by and OK czarkoff@. Feedback, partial review and testing, no longer any objection by martijn@. Feedback and testing by tb@. Also read fine to nicm@.
2016-10-11Remove now-unused pathnames.h, from Jan StaryTodd C. Miller
2016-10-11Reimplement g flag for s commands. Got lost in previous commit.Martijn van Duren
Found because of a hint by and OK schwarze@.
2016-10-10don't need to worry about pre/post order and skipping directories.Ted Unangst
remove more dead code
2016-10-10zap extra includesTed Unangst
2016-10-10remove some more dead code. (previous diff from Jan Stary)Ted Unangst
2016-10-10remove some dead code that's only used in rmTed Unangst
2016-10-10Remove infinite loop detection from the s-command.Martijn van Duren
If a zero-length match is found do the replacement and increment the start point for the next search by one. This allows for commands like s/^/- / This brings the behaviour closer to the way sed and vi work. OK schwarze@
2016-10-07suppose we should fix csh while we're at it.Ted Unangst
2016-10-07note that ulimit -m is not enforced, spotted by jmcTed Unangst
2016-09-30remove unneccessary .Pp; from jan staryJason McIntyre
2016-09-27Move bug description to the BUGS sectionDmitrij Czarkoff
OK natano@, jmc@ (I forgot to commit it back in mid-August when it was discussed.)
2016-09-23Attempt to use stdout, stderr, or stdin terminal widths if they exist.Anthony J. Bentley
This behavior already existed but was unintentionally lost in revision 1.70 of ps.c. ok millert@ tb@
2016-09-23remove the note about the list command (l) displaying a --More--Jason McIntyre
prompt for huge lines (according to otto this happens only when BACKWARDS is not defined); ok otto
2016-09-20sync the description of -q with that of cksum.1;Jason McIntyre
from bytevolcano ok millert
2016-09-12Remove mention of "remote time" in description for the -a flag.Jeremie Courreges-Anglas
timed(8) support for date(1) was removed years ago. ok millert@ deraadt@
2016-09-11Symlinks to binaries should belong to root:bin.Martin Natano
tweaks and ok guenther
2016-09-08The bug about not displaying exact information because ps can't runTed Unangst
faster than the system is more of a caveat than a bug. The comment also dates back to ye olden times when the information was collected via multiple kvm reads. The sysctl interface provides a much more consistent snapshot, albeit one that may be outdated by the time it's printed. Reword accordingly.
2016-09-08Mark PPID read-only as per the manual. From Anthony Coulter.Todd C. Miller
2016-09-08Add KSH_IGNORE_RDONLY flag and use it in var.c instead of the 0x4Todd C. Miller
magic number.
2016-09-08Allow "typeset -ir FOO" if FOO is not already marked read-only. OK tb@Todd C. Miller
2016-09-08etime isn't just an alias for start. the output format is different.Ted Unangst
diff from Carlin Bingham. ok millert.
2016-09-08Don't try to look up array names for complete_* that aren'tNicholas Marriott
alphanumeric, spotted by and ok sthen
2016-09-08it seems we hyphenate it set-group-id;Jason McIntyre
from daniel bolgheroni
2016-09-07remove unused variable 'last'David Coppa
ok nicm@
2016-09-04Allow simple custom completions by creating an array namedNicholas Marriott
"complete_commandname_argnum", for example: set -A complete_kill_1 -- -9 -HUP -INFO -KILL -TERM To set completions for the first argument to kill(1). If no complete_* arrays are present, the normal filename completion is offered. positive comments from many; man page ok/tweaks jmc; ok tedu
2016-09-03add sha512/256 support to check that the libc code is right :)Ted Unangst
2016-09-01simplify comment to remove reference to sparc.Ted Unangst
2016-08-26Pull in <sys/time.h> for gettimeofday()Philip Guenther
2016-08-26Need <time.h> for time() and others. Pulled in by coincidence previouslyPhilip Guenther
noted by tb@
2016-08-26-E NONE has *never* worked; it was always -E none. It's a dubious optionPhilip Guenther
value that merits a warning in the manpage and using 2 billion will get you practically the same effect, so delete the -E none support
2016-08-26options.h is only used by options.c; merge it into the .c filePhilip Guenther
reduce and sort #includes
2016-08-26reduce and sort #includesPhilip Guenther
2016-08-26tables.h is only used by tables.c; merge it into the .c filePhilip Guenther
<sys/time.h> is unnecessary; sort the #includes
2016-08-26<sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includesPhilip Guenther
2016-08-26sel_subs.h is only used by sel_subs.c; merge it into the .c filePhilip Guenther
<sys/time.h> and <unistd.h> are unnecessary, but <time.h> is; sort #includes
2016-08-26pat_rep.h is only used by pat_rep.c; merge it into the .c filePhilip Guenther
<sys/time.h>, <errno.h> and <unistd.h> are unnecessary; sort #includes
2016-08-26ftree.h is only used by ftree.c; merge it into the .c filePhilip Guenther
<sys/time.h> is unnecessary; sort #includes
2016-08-26Don't need <sys/time.h> or "options.h" herePhilip Guenther