summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
2005-06-01add missing detail from IFS exampleJared Yanovich
Originally from TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp> from PR 4220 reminded by jmc
2005-05-28Use proper modules instead of relying on .ph files.Todd C. Miller
Use Getopt::Std instead of the perl4 getopts.pl
2005-05-25add missing detail from IFS exampleJared Yanovich
From PR4220/TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
2005-05-12.Xr script 7Jason McIntyre
2005-04-13use STD{IN,OUT,ERR}_FILENOTheo de Raadt
2005-03-30lots of indentation cleanup, now ksh is readable like our other code.Theo de Raadt
double checked to make sure no binaries change, and eyed by niallo
2005-03-28spacingTheo de Raadt
2005-03-28if argv[0] not set, do not set it to "pdksh", but to "ksh"Theo de Raadt
2005-03-28spacingTheo de Raadt
2005-03-04document that $HOME is shown as `~' for PS1 \w substitutions;Jason McIntyre
diff from niall o'higgins, pr 4132 (slightly reworded); ok otto@
2005-02-25knfTheo de Raadt
2005-02-21Set \u in prompt expansion to the right value, while avoiding getpw* calls,Otto Moerbeek
which might be very inconvenient when the yp server is not available. ok deraadt@ millert@
2005-02-18sort options to echo builtin;Jason McIntyre
2005-02-17Printt ^D and newline on EOF in emacs mode like in vi mode.Otto Moerbeek
Help and ok jaredy@ ok millert@
2005-02-16a note about why we have both EDITOR and VISUAL env vars;Jason McIntyre
ok otto@ jaredy@
2005-02-16document that `emacs' is the default editing mode, and that as wellJason McIntyre
as being set explicitly w/ `set', modes can also be set using EDITOR and VISUAL; ok jaredy@ otto@
2005-02-08oops, missed a prompt;Jason McIntyre
2005-02-08use command prompts and literal for commands;Jason McIntyre
2005-02-08big overhaul of these pages, to make them clearer to read;Jason McIntyre
various other issues fixed along the way; lots of stuff from jaredy@ in here too..
2005-02-08Move sh.1tbl -> sh.1 and ksh.1tbl -> ksh.1Todd C. Miller
2005-02-05note that symlinks in test file are followed, except -h and -LJason McIntyre
(just like test(1) does); from paul de weerd;
2005-02-02Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticOtto Moerbeek
expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
2005-01-27fix some vi-mode bugs spotted by jmc@Dan Harnett
tested by jmc@, ok otto@
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-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-10typo;Jason McIntyre
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-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-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