summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
2004-11-10defer ! and !! handling till prompt printing, like real ksh, and this nowTheo de Raadt
means even less fallout from the prompt expansion changes; ok jmc
2004-11-09/bin/sh supports PS1 expansion;Jason McIntyre
2004-11-08add a more complex PS1 example, which does not use the new backslashJason McIntyre
sequences; from naddy@, via deraadt@
2004-11-06\[ and \] delimit blocks of characters which are processed just likeTheo de Raadt
regular things, except that character counting is turned off temporarily. character counting is needed so that the shell can handle editing beyond end-of-line and such as well, ksh hack: prompts prefixed with [delimitchar]\r means that any blocks between later matching [delimitchar] toggle counting on and off semantics corrected based on input from naddy
2004-11-06change \w to output ~/subpath type things, except for root of courseTheo de Raadt
naddy ok
2004-11-06correct my description of \[ and \]Jason McIntyre
found by (and ok) deraadt@
2004-11-05document PS1 expansions;Jason McIntyre
2004-11-05incorrect markup was messing the description of IFS. i've rearranged itJason McIntyre
slightly so that no one (me, most likely) falls for it again. also, make sh(1)'s IFS description a little more consistent.
2004-11-04do the variety-pack of bash-style \letter expansions on prompt variables.Theo de Raadt
a few issues remain with \ and $ and ! because of early variable expansion done by incorrect eval/substitution, but this change is not responsible for that. tested by djm, jmc, and many others
2004-11-03HISTSIZE cranked to 500Jared Yanovich
2004-11-02crank history to 500, requested by pvalTheo de Raadt
2004-10-28fix spacing after period at EOL. from ray@cyth.netJared Yanovich
2004-08-23Don't send SIGINT or SIGTERM to the entire processes group when theTodd C. Miller
shell receives SIGINT/SIGTERM unless the shell is the process group leader. Fixes PR 3820. OK danh@ sturm@ miod@
2004-08-07Document ulimit -v; mickey@ OKTodd C. Miller
2004-08-04- mdoc and macro fixes and simplificationJared Yanovich
- punctuation and grammar fixes - show prompts for example shell commands help and ok jmc
2004-08-03only neuter fc builtin if initial shell is not interactiveDan Harnett
ok miod@
2004-07-16Neuter the fc builtin on non-interactive shells; inspired by NetBSD PR#26339.Miod Vallat
ok millert@
2004-06-07do not push ksh into stupid-random mode; leave it in arc4random() mode.Theo de Raadt
oops. spotted by weerd@weirdnet.nl
2004-05-31Remove redundant errno declaration. ok deraadt@Otto Moerbeek
2004-05-10double the command line buffer size (1024 -> 2048); ok millert deraadtPeter Valchev
2004-05-09Document new behavior of $RANDOM. ok deraadt@Otto Moerbeek
2004-05-08unless specifically requested by setting the seed, use arc4random(); otto okTheo de Raadt
2004-04-30typo;Jason McIntyre
from ray at cyth dot net (PR 3762);
2004-03-15missing commas;Jason McIntyre
2004-03-15reversed word -> reserved word;Jason McIntyre
from Karl O. Pinc
2004-02-19escape full stops where necessary to kill erroneous double spaces;Jason McIntyre
softly, softly, catchy monkey...
2004-02-19basic knfTheo de Raadt
2004-02-16give up on amd64 -O0Theo de Raadt
2004-02-10upper case id;Jason McIntyre
from Mathias K. Straede (PR 3680);
2004-02-10XXX: build ksh -O0 for now, since it makes it a whole lot more stable.Theo de Raadt
we'll figure out what the bug is later, or maybe some of the other fixes going in will fix it..
2004-02-08forget about 16 bit machines; millert okTheo de Raadt
2004-01-23`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))Jason McIntyre
discussed with todd@
2004-01-15escape full stops properly to avoid double spaces;Jason McIntyre
2004-01-09use cc -E for the preprocessor instead of cpp.Brad Smith
ok espie@ millert@
2004-01-08typo; from ray at cyth dot net (PR 3632);Jason McIntyre
2003-12-27this page documents `sh', not `ksh';Jason McIntyre
2003-12-27- revert a typo introduced when this page was mdoc'edJason McIntyre
- use .Sq rather than .Dq for single letters
2003-12-22note that `&&' and `||' are left-associative;Jason McIntyre
from vax at carolina dot rr com (NetBSD PR 23814); agreed (in principal) millert@ deraadt@
2003-12-15Unbreak parameter assignment when calling bourne style functions;Otto Moerbeek
resolves PR 2450. ok deraadt@ millert@
2003-12-12typo; ok jmc@Christian Weisgerber
2003-11-10If "from fd" == "to fd" don't call dup2() or close "from fd".Todd C. Miller
2003-11-10For the >& and <& operators, add a check for "dup from" == "dup to" andTodd C. Miller
just return success if they are the same. Fixes the "ls 2>&2" problem miod@ found.
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-10-28standard section order;Jason McIntyre
2003-10-26typos from Jared Yanovich;Jason McIntyre
2003-10-22macros with too many args;Jason McIntyre
2003-10-22typos from Jared Yanovich;Jason McIntyre
ok deraadt@
2003-10-16Buffers are not strings so use memcpy(), not strlcpy() to copy them.Todd C. Miller
Found by danh@ with JG malloc options. I've also added some further bounds checks in the name of paranoia. Tested by danh and others.
2003-10-10The special case code for "test -x" over NFS was incorrect. TheTodd C. Miller
right thing to do is to try access(2) first (since that occurs on the NFS server side) and only check for the absence of an execute bit when access(2) succeeds. Closes PR 3465
2003-09-04escapes in the wrong place;Jason McIntyre