summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
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
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-09-01In emacs editing mode, ksh by default interprets a set 8th bit asChristian Weisgerber
meta prefix, i.e. all characters with the top bit set (>= 0x80) are taken as commands and cannot be entered literally. Introduce a new shell option, emacs-usemeta, that allows to toggle this behavior. The default is the traditional behavior; to enter 8-bit characters use "set +o emacs-usemeta". ok fgsch@, henning@
2003-09-01fix perl path. not that anyone uses this, but..Federico G. Schwindt
2003-08-27rename force_push to something more sensible.Federico G. Schwindt
2003-08-27escape on expand under emacs mode; otto@ ok.Federico G. Schwindt
2003-08-26fix backward and forward delete; from wiz@netbsd.org. many thanks.Federico G. Schwindt
2003-08-23under emacs mode, fix the case when the globbed file and the longestFederico G. Schwindt
prefix lenghts are equal ("a .b" and "a ab" by instance). found and tested by otto@.
2003-08-22in word location, fix forward scanning so it correctly account for anyFederico G. Schwindt
escaped char and not only spaces. for "foo (bar.a)" and "foo (bar a)", cd foo\ \(bar.<tab> will correctly expand to foo\ \(bar.a\). otto@ and pval@ ok.
2003-08-11I can not reproduce the ksh -O1 issues anymore on mvme88k with the latestMiod Vallat
snapshot, so stop disabling optimization.
2003-08-08Enable the first level of compiler optimizations on mvme88k by default,Miod Vallat
now that is getting stable. ksh(1) still has to be builh at -O0 for now, though. ok deraadt@
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-08-05Don't allow alloc() and aresize() to fail. Their return value wasTodd C. Miller
only checked in two place (both in conjunction with str_save). Upon malloc/realloc failure we call internal_errorf() which pops throws and error and pops back to the last good state. OK deraadt@ pval@ fgs@ Original problem noted by mickey@
2003-08-02don't push things unless force is true; avoid adding text again on yank-pop.Federico G. Schwindt
2003-08-02On ESC-y ESC-y (yank-pop), also check that there is something toFederico G. Schwindt
insert (some text has been killed before). from otto@, fix PR/3384. On yank-pop error (no yank before), reset the index to killstack so another yank-pop does not mangle the prompt if nothing was yanked, and to avoid replacing a text when it shouldn't (yank <something> yank-pop yank-pop). otto@ ok.
2003-07-19redrew -> redraw;Jason McIntyre
from Andrey Matveev.
2003-07-17note non-free parts that got yanked years ago; ↵Theo de Raadt
tom.cosgrove@arches-consulting.com
2003-07-07- convert some lists to displaysJason McIntyre
- .Ql -> .Sq where necessary - remove some .Pp's before lists - add missing .El - remove some wrong macros
2003-06-26protosTheo de Raadt
2003-06-06liternal -> literal;Jason McIntyre
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-18fix prototype; ok millert@Jason Peel
2003-05-17use MAP_FAILED rather than -1; millert@ ok.Federico G. Schwindt
2003-05-16fix several constant overflows, remove the strerror prototype (shouldn't beJason Peel
there), and cleanup some whitespace; help from, and okay millert@
2003-05-16make ksh use our dup2(), and add clarity (we've no configure.in there);Jason Peel
ok millert@
2003-05-05in emacs or vi mode, if vi-tabcomplete or vi-esccomplete mode is on, thisFederico G. Schwindt
escapes "`" so by instance cd works correctly; millert@ and pvalchev@ ok.
2003-04-28typos;Jason McIntyre
suggestions, corrections and ok millert@
2003-04-16string cleaning. ok tedu@Thierry Deval
2003-04-15cull warningsTheo de Raadt
2003-04-06strlcat; ok from various peopleTheo de Raadt
2003-04-04two fixes; help from tedu & tdevalTheo de Raadt
2003-03-20typos;Jason McIntyre
from NetBSD (Soren Jacobsen) ok millert@
2003-03-14better document how getopts handles options;Jason McIntyre
plus typos; from J.A. Neitzel; Fixes PR 3141; ok millert@
2003-03-13a few strcpy -> strlcpy; a couple people have mailed in a variety ofTheo de Raadt
patches, and i already had this sitting on my laptop at that time.. i used that as a chance to note that we had all done the same work, more or less
2003-03-10spelling fixesDavid Krause
ok millert@
2003-02-28typos; from Brian PooleJason McIntyre