summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2005-01-21fix missing list item: *(...); spotted by Frank Sander frksndr atOtto Moerbeek
gmx dot de. ok jmc@
2005-01-19typo;Jason McIntyre
2005-01-19although the description for the `comment' bind was in the page,Jason McIntyre
the bind itself (^[#) was missing;
2005-01-17typo;Jason McIntyre
2005-01-14bring back the space before (cmd); ok millert aaronTheo de Raadt
2005-01-10Remove unneccesary cast to long long and %llu format; print using %lu.Otto Moerbeek
Spotted by tom@, ok millert@
2005-01-10In csh-style history expansion, initialize s->u.freeme to NULL so weTodd C. Miller
don't try to free garbage on cleanup. Fixes problem noticed by david@
2005-01-10-l outputs total always, not just to terminals (netbsd -r 1.50);Jason McIntyre
-l output is one per line (like -1); -x also inhibits one per line output;
2005-01-10typo;Jason McIntyre
2005-01-07avoid negative memory sizes, ok deraadt@Otto Moerbeek
2004-12-31Call perl directly instead of using an sh script to find it.Todd C. Miller
OK otto@
2004-12-30Remove -Wno-unused form CFLAGS and kill some unused vars found as a result ofOtto Moerbeek
that. ok millert@
2004-12-30Simplify local copying of PS1 environment variable. Since we noTodd C. Miller
longer call shf_fprintf() we don't need to jump through hoops using shf_sopen/shf_sclose and can simply use str_save. OK otto@ and tested by several ksh users
2004-12-29Add support for multiple using algorithms. OK'd by several peopleTodd C. Miller
a while ago so get this out of my tree...
2004-12-29in prompt variable parsing, if either \n or \r (the two characterTheo de Raadt
sequences) are detected reset the "pointer to first character in last line of prompt" and "length of last line of prompt" variables, just like how it done for \n (the literal character). this fixes cursor movement for prompts with those sequences embedded within ok jmc pval
2004-12-28ansi. No binary change.Jonathan Gray
2004-12-23Replace home rolled unsigned char type with u_char.Jonathan Gray
ok millert@
2004-12-22quitenv() proto should have the variable type only, not the name.Todd C. Miller
2004-12-22These man pages are not derived from UCB and are actually public domain.Todd C. Miller
Verified with aaron@ who did the conversion from man -> mdoc.
2004-12-22Fix a use-after-free, that causs core dumps if a shell is killedOtto Moerbeek
running with strict malloc.conf options. Problem spotted by hshoexer@; fix by me with some help from millert@. ok millert@ hshoexer@ krw@ deraadt@
2004-12-22Fix previous commit here, I add the case statement to the wrong switch.Todd C. Miller
2004-12-22Our times(3) just calls getrusage(2) and gettimeofday(2), converting secondsTodd C. Miller
to ticks. Since ksh needs things in seconds it then converted them back. Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly. With man page help from jmc@
2004-12-22Make 'echo ${a[@]:?foo}' produce an error, not a core dump.Todd C. Miller
Bug noticed by otto@.
2004-12-22Use sys_signame and sys_siglist instead of building a list of signalTodd C. Miller
values and names via an awk script. OK otto@
2004-12-22g/c str_zcpy()Todd C. Miller
2004-12-22Use stdbool.h instead of rolling our own bools.Todd C. Miller
2004-12-20Don't print an unnecessary trailing space character at the end of commandAaron Campbell
argument display. This makes it easier to grep ps output for 'foo$', instead of having to use 'foo *$'. millert@ ok
2004-12-20Ansification plus some minor knf. No binary change on i386 andOtto Moerbeek
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
2004-12-19spacingTheo de Raadt
2004-12-19umask returns mode_t, not intTodd C. Miller
2004-12-18Use _PATH_BSHELL instead of hardcoding "/bin/sh"Todd C. Miller
2004-12-18remove GCC_FUNC_ATTR/GCC_FUNC_ATTR2 and just use __attribute__ directlyTodd C. Miller
(we define it away in sys/cdefs.h if it is not supported).
2004-12-18Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC)Todd C. Miller
2004-12-18Use struct termios instead of TTY_state typedefTodd C. Miller
Use tc[gs]etattr() instead of [gs]et_tty() abstraction
2004-12-18Flags set in signal handlers should be volatile sig_atomic_tTodd C. Miller
2004-12-18Use the BSD sig_t instead of homegrown handler_tTodd C. Miller
Remove KSH_SA_FLAGS
2004-12-18deregisterTodd C. Miller
2004-12-18When invoked as sh set SH_VERSION, not KSH_VERSION like the man page says.Todd C. Miller
2004-12-18Get rid of #ifdef KSH since we don't care about building a V7 style sh andTodd C. Miller
the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
2004-12-18Use _POSIX_VDISABLE directly instead of assigning it to a variable.Todd C. Miller
2004-12-18Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.Todd C. Miller
First step in making the ksh code easier to read. From Matthias Kilian
2004-12-17sync usageJared Yanovich
manpage: - indent examples - document exit status ok jmc
2004-12-16- document IFS behavior changesJared Yanovich
- grammar, punctuation, xref, mdoc tweaks - sort keywords - indent example displays - minimize against diffing between sh.1tbl - document set -o sh - tweak the displays of some editing and builtin commands - rework some operator descriptions ok jmc
2004-12-15- adjust regression tests to recent IFS changesJared Yanovich
- add missing variable $ signs - add the IFS example mentioned in the manpage as a test based on diff from Thorsten Glaser ok millert
2004-12-13Only warn if we try to cp(1) a socket. Consequently, this makesOtto Moerbeek
mv(1)ing trees containing sockets across filesystems much more smooth. ok millert@ tedu@ fgsch@ pedro@ deraadt@
2004-12-13Use warnx() instead of warn() in four places where we know errno is zero.Otto Moerbeek
ok henning@ fgsch@ pedro@ millert@
2004-12-13Restore sp before calling snptreef() so the error message containsTodd C. Miller
the actual expression that caused the error. OK otto@
2004-12-13standard EXAMPLES;Jason McIntyre
2004-12-13more references to hier(7), from mickey;Jason McIntyre
2004-12-13make hier(7) more visible;Jason McIntyre
tweak some stuff while i'm in here;