Up to [local] / src / bin / ksh
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.80 / (download) - annotate - [select for diffs], Sun Apr 28 16:43:15 2024 UTC (6 weeks, 1 day ago) by florian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.79: +31 -7 lines
Diff to previous 1.79 (colored)
gmtime(3) / locatime(3) can fail when timestamps are way off. Add missing error checks to all calls under bin/ Input & OK millert
Revision 1.79 / (download) - annotate - [select for diffs], Wed Feb 8 17:22:10 2023 UTC (16 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.78: +3 -1 lines
Diff to previous 1.78 (colored)
Omit version in SMALL ksh builds No need for KSH_VERSION and its PS1 esacape sequences in installer shells. Save some bits and clean up what(1) output on ramdisk kernels. OK deraadt
Revision 1.78 / (download) - annotate - [select for diffs], Mon Jan 15 14:58:05 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.77: +6 -12 lines
Diff to previous 1.77 (colored)
Stop pretending we support building ksh without EDIT/HISTORY support ok anton@
Revision 1.77 / (download) - annotate - [select for diffs], Sat Jan 6 16:28:58 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)
Bring back the sign compare changes, this time with a fix from otto@ that fixes the issues seen on hppa. OK deraadt@ otto@
Revision 1.76 / (download) - annotate - [select for diffs], Thu Jan 4 19:06:16 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)
Back out sign compare changes that appear to cause problems on hppa. Requested by deraadt@
Revision 1.75 / (download) - annotate - [select for diffs], Mon Jan 1 19:45:56 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)
Add WARNINGS=yes to ksh and fix the resulting sign compare warnings. OK tb@
Revision 1.74 / (download) - annotate - [select for diffs], Wed Dec 27 13:02:57 2017 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored)
Add -Wshadow to Makefile and fix the resulting warnings. Many of the warnings are due to the use of globals with generic names, specifically "options" and "path". I've renamed "options" to "sh_options" since it holds the shell options and "path" to "search_path". OK jca@ tb@
Revision 1.73 / (download) - annotate - [select for diffs], Tue Dec 12 00:18:58 2017 UTC (6 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)
Include hostname in shell prompts by default With tmux, ssh and vmd, we tend to open shells on many different hosts simultaneously and the default prompts '$ ' and '# ' for {,k}sh as well as '% ' and '# ' for csh become dangerous: it's very easy to issue a command on the wrong host. This can easily be avoided by displaying the hostname in the prompt. Everything beyond "hostname{$,#,%} " is going to be a matter of taste, so we left it at that. If you use an FQDN, only the first part (the output of 'hostname -s') will be printed. requested by and ok deraadt; mostly positive feedback many ok anton, brynet, bcallah and others
Revision 1.72 / (download) - annotate - [select for diffs], Thu Dec 7 01:54:33 2017 UTC (6 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)
Drop the unused second argument from set_prompt(). It used to be used for early special casing of ! and !! in the PS1 expansion. This was removed from set_prompt() as part of the implementaion of the character count toggles \[ and \] back in 2004. ok jca
Revision 1.71 / (download) - annotate - [select for diffs], Tue Jul 4 11:46:15 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)
Backout previous due to a bug discovered by zhuk@ that requires some tinkering and is not an easy fix for now.
Revision 1.70 / (download) - annotate - [select for diffs], Tue Jul 4 07:29:32 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)
Add support for pattern substitution to variables in ksh using a common syntax borrowed from ksh93. Survived a ports build performed by naddy@ and encouraged by many.
Revision 1.69 / (download) - annotate - [select for diffs], Wed Apr 27 12:46:23 2016 UTC (8 years, 1 month ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.68: +13 -31 lines
Diff to previous 1.68 (colored)
Do not handle echo "`echo \"hi\"`" in POSIX mode differently than in traditional mode. This aligns ksh's behavior with bash and FreeBSD sh. The interpretation of the POSIX text is disputed, but it is unlikely that a change from the traditional behavior was intended. ok millert@
Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 4 09:37:23 2016 UTC (8 years, 3 months ago) by czarkoff
Branch: MAIN
Changes since 1.67: +10 -1 lines
Diff to previous 1.67 (colored)
don't parse (...|...) patterns in variable substitution inside double quotes fixes posix compatibility issue OK millert@, nicm@, otto@
Revision 1.67 / (download) - annotate - [select for diffs], Wed Dec 30 09:07:00 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)
rename global "e" to genv to avoid accidental shadowing and aliasing. ok millert nicm tb
Revision 1.66 / (download) - annotate - [select for diffs], Mon Dec 14 13:59:42 2015 UTC (8 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.65: +4 -1 lines
Diff to previous 1.65 (colored)
Move system headers from sh.h to those files that actually need them. ok mmcc@ a while ago
Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 14 06:09:43 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)
Remove a superfluous macro. No binary change. ok tb@
Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 18 15:31:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.63: +5 -4 lines
Diff to previous 1.63 (colored)
Only unget match[] if it has been used, ok sthen
Revision 1.63 / (download) - annotate - [select for diffs], Thu Nov 12 04:04:31 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)
Use isdigit() instead of ksh's homebrewed alternative. ok nicm@. Also discussed with millert@ and guenther@.
Revision 1.62 / (download) - annotate - [select for diffs], Sun Nov 1 15:38:53 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)
Add uses of areallocarray(). mksh and Bitrig ksh already have similar functions. With help from Theo Buehler. ok nicm@
Revision 1.61 / (download) - annotate - [select for diffs], Mon Oct 19 14:42:16 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)
Move string.h include from sh.h to the files that use it. ok nicm@
Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 19 02:15:45 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)
Apply style(9) to header includes. ok nicm@
Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 10 22:09:23 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)
Add a define for the invalid state, from mksh via Michael McConville. ok millert
Revision 1.58 / (download) - annotate - [select for diffs], Fri Oct 9 19:49:08 2015 UTC (8 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.57: +19 -1 lines
Diff to previous 1.57 (colored)
Lexer states are not needed outside of lex.c. From mksh via Michael McConville
Revision 1.57 / (download) - annotate - [select for diffs], Mon Oct 5 23:32:15 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.56: +10 -1 lines
Diff to previous 1.56 (colored)
Remove EXTERN from lex.h and put the definitions in lex.c, from Michael McConville.
Revision 1.56 / (download) - annotate - [select for diffs], Wed Sep 30 14:33:41 2015 UTC (8 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.55: +11 -5 lines
Diff to previous 1.55 (colored)
fix error message for csh-history. the lexer needs to back up more. from Michael McConville
Revision 1.55 / (download) - annotate - [select for diffs], Tue Sep 22 21:50:40 2015 UTC (8 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)
Make errorf() and bi_errorf() handle a NULL argument. From Michael McConville; OK nicm@
Revision 1.54 / (download) - annotate - [select for diffs], Fri Sep 18 07:28:24 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)
Last of the (thing *)0 -> NULL, from Michael McConville. No binary change.
Revision 1.53 / (download) - annotate - [select for diffs], Thu Sep 17 14:21:33 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)
Remove unnecessary casts, from Michael McConville. No binary change.
Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 15 18:15:05 2015 UTC (8 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)
correct spelling of NULL from (char *)0. from Michael McConville. ok md5
Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 10 22:48:58 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)
Replace newline and space defines by "\n" and " " directly, from Michael McConville. ok millert
Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 30 14:59:12 2015 UTC (8 years, 10 months ago) by zhuk
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)
Fix the baskslash-escaped codes ('\nnn') usage in PS1. Report and initial proposal from Vadim Ushakov on bugs@, tweaked by me. okay deraadt@
Revision 1.49 / (download) - annotate - [select for diffs], Tue Dec 17 16:37:06 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)
ctype cleanups. Repeated re-audits of this sensitive area by okan and myself, with a variety of other people spending some time as well. Thanks.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Nov 12 04:36:02 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)
add a variety of missing prototypes
Revision 1.47 / (download) - annotate - [select for diffs], Sun Mar 3 19:11:34 2013 UTC (11 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.46: +16 -3 lines
Diff to previous 1.46 (colored)
Fix quoting in word part of ${var+word} (and similar) when entire thing is quoted or in a here-doc. Patch from Alexander Polakov (plhk (at) sdf.org). ok mpi@ jung@
Revision 1.46 / (download) - annotate - [select for diffs], Sun Jan 20 14:47:46 2013 UTC (11 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.45: +5 -1 lines
Diff to previous 1.45 (colored)
Fix backslash escaping during filename tab-completion in ksh. Diff originally submitted by Alexander Polakov, with a small tweak from me to avoid breaking tab-completion of environment variables (problem pointed out by bentley). ok sthen halex mpi
Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 9 09:30:39 2011 UTC (13 years, 3 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.44: +6 -2 lines
Diff to previous 1.44 (colored)
substitute '~' for $HOME in the \W prompt case; matches bash's behavior. feedback from Dan Harnett OK deraadt@
Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 3 17:52:08 2008 UTC (15 years, 11 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.43: +2 -4 lines
Diff to previous 1.43 (colored)
fix inifinite loop with set -o csh-history and !<space> as input. report and testing by david@; ok millert@ jaredy@
Revision 1.43 / (download) - annotate - [select for diffs], Sat Jun 2 16:40:59 2007 UTC (17 years ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)
s/FALLTROUGH/FALLTHROUGH/
Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 10 17:12:41 2006 UTC (17 years, 11 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)
fix ksh prompt wrapping, from Marcus Glocker <marcus@nazgul.ch>. tested by me and naddy, and others... ok naddy@ and me.
Revision 1.41 / (download) - annotate - [select for diffs], Fri Jun 16 20:34:22 2006 UTC (17 years, 11 months ago) by drahn
Branch: MAIN
Changes since 1.40: +6 -3 lines
Diff to previous 1.40 (colored)
Work around a problem with \$ expansion where \$\$ turned into pid ($$) expansion. otto and I cannot think of anything better. ok otto@
Revision 1.40 / (download) - annotate - [select for diffs], Mon May 29 18:22:24 2006 UTC (18 years ago) by otto
Branch: MAIN
Changes since 1.39: +23 -11 lines
Diff to previous 1.39 (colored)
Implement \$ and \# expansion for PS1. Whoever thought it a clever idea to assign a special meaning to "\$" -- two chars that are already (very) special -- deserves a spanking.
Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 10 14:38:59 2006 UTC (18 years, 2 months ago) by jaredy
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)
fix lint comments, no functional changes; ok ray
Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 11 20:31:21 2005 UTC (18 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)
fix a few name clashes with libc; found by lint. ok deraadt@
Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 11 18:02:27 2005 UTC (18 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.36: +8 -2 lines
Diff to previous 1.36 (colored)
Fix " handling in here documents. POSIX says they are not special, so cat << EOF \" EOF should print \" Fixes PR 4472; testing jmc@ and Adam Montague. ok millert@
Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 30 17:16:37 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.35: +113 -124 lines
Diff to previous 1.35 (colored)
lots of indentation cleanup, now ksh is readable like our other code. double checked to make sure no binaries change, and eyed by niallo
Revision 1.35 / (download) - annotate - [select for diffs], Mon Feb 21 16:01:58 2005 UTC (19 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.34: +2 -6 lines
Diff to previous 1.34 (colored)
Set \u in prompt expansion to the right value, while avoiding getpw* calls, which might be very inconvenient when the yp server is not available. ok deraadt@ millert@
Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 10 17:52:04 2005 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)
In csh-style history expansion, initialize s->u.freeme to NULL so we don't try to free garbage on cleanup. Fixes problem noticed by david@
Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 30 21:34:24 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored)
Remove -Wno-unused form CFLAGS and kill some unused vars found as a result of that. ok millert@
Revision 1.32 / (download) - annotate - [select for diffs], Thu Dec 30 21:11:40 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.31: +4 -10 lines
Diff to previous 1.31 (colored)
Simplify local copying of PS1 environment variable. Since we no 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
Revision 1.31 / (download) - annotate - [select for diffs], Wed Dec 29 06:59:42 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored)
in prompt variable parsing, if either \n or \r (the two character 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
Revision 1.30 / (download) - annotate - [select for diffs], Wed Dec 22 18:57:28 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
Fix a use-after-free, that causs core dumps if a shell is killed running with strict malloc.conf options. Problem spotted by hshoexer@; fix by me with some help from millert@. ok millert@ hshoexer@ krw@ deraadt@
Revision 1.29 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)
Use stdbool.h instead of rolling our own bools.
Revision 1.28 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.27: +24 -46 lines
Diff to previous 1.27 (colored)
Ansification plus some minor knf. No binary change on i386 and sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
Revision 1.27 / (download) - annotate - [select for diffs], Sun Dec 19 04:14:20 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +4 -5 lines
Diff to previous 1.26 (colored)
spacing
Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 18 21:25:44 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.25: +9 -9 lines
Diff to previous 1.25 (colored)
deregister
Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 18 21:04:52 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.24: +28 -55 lines
Diff to previous 1.24 (colored)
Get rid of #ifdef KSH since we don't care about building a V7 style sh and the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.23: +16 -35 lines
Diff to previous 1.23 (colored)
Remove unused OS dependent #ifdef blocks, #defines and macro abstraction. First step in making the ksh code easier to read. From Matthias Kilian
Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +61 -1 lines
Diff to previous 1.22 (colored)
csh-style ! history completion, which can be activated by using set -o csh-history (off by default) this is not feature complete, and likely never will be. no ^ and ! has some oddities ... ksh's internal history stuff has got some very odd behaviours that are rather nasty ok various developers
Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 10 21:13:54 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +3 -13 lines
Diff to previous 1.21 (colored)
defer ! and !! handling till prompt printing, like real ksh, and this now means even less fallout from the prompt expansion changes; ok jmc
Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 6 20:36:44 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +21 -24 lines
Diff to previous 1.20 (colored)
\[ and \] delimit blocks of characters which are processed just like 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
Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 6 20:33:00 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)
change \w to output ~/subpath type things, except for root of course naddy ok
Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 4 19:20:07 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +252 -16 lines
Diff to previous 1.18 (colored)
do the variety-pack of bash-style \letter expansions on prompt variables. 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
Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 6 21:08:05 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
Remove some double semicolons (hmm, do two semis equal a maxi?). I've skipped the GNU stuff for now. From Patrick Latifi.
Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 28 09:45:09 2003 UTC (21 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
typos; from Brian Poole
Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 9 05:47:27 2002 UTC (22 years ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
knf
Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 16 01:28:54 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.14: +3 -5 lines
Diff to previous 1.14 (colored)
Use the volatile specifier to fix warnings about variables being clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:34 1999 UTC (25 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Changes since 1.13: +21 -38 lines
Diff to previous 1.13 (colored)
patches from pdksh 5.2.13.11
Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 19 20:41:55 1999 UTC (25 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5
Changes since 1.12: +1 -7 lines
Diff to previous 1.12 (colored)
Updates from pdksh-unstable-5.2.13.7. Most notable change is: trap: exit traps now executed in subshells (without explicit exit call). See the Changelog for a full list of changes.
Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 10 17:55:03 1999 UTC (25 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)
sync with pdksh-unstable-5.2.13.6
Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:06 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.10: +272 -131 lines
Diff to previous 1.10 (colored)
pdksh-5.2.13 + local changes
Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 12 04:39:32 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)
Avoid longjmp/vfork clobbering.
Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 1 18:30:08 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
i am bored enough to fix terminal space/tab uglies
Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 5 21:49:55 1997 UTC (26 years, 10 months ago) by grr
Branch: MAIN
Changes since 1.7: +7 -5 lines
Diff to previous 1.7 (colored)
Fixes for a variety of pdksh problems: 1) pkksh in sh mode closed fd's other than [012] on exec'ing a command. this is a ksh'ism and POSIX sates that open files are part of the environment to be passed to the new process. 2) pdksh in sh mode interpets (( as meaning the start of arithmetic "quoting", which is incompatible with it's usage as a nested sub-shell invocation. The $(( form for arithmetic substitution is stil valid, however. PR user/59 millert@openbsd.org (Todd C. Miller) 3) pdksh sh.1 manpage isn't explicit about the range of input text that is subject to field splitting after a substitution. PR user/236 Mathieu.Herrb@mipnet.fr (Mathiew Herrb)
Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 19 13:58:44 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)
back out
Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 18 22:42:38 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)
(foo *)0 -> NULL
Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 21 07:59:32 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)
Update to 5.2.12.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 13 21:32:19 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.3: +123 -67 lines
Diff to previous 1.3 (colored)
Update to version 5.2.11.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 1 02:05:42 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.2: +16 -9 lines
Diff to previous 1.2 (colored)
Integrate pdksh 5.2.9.
Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 19 20:08:55 1996 UTC (27 years, 9 months ago) by downsj
Branch: MAIN
Changes since 1.1: +11 -2 lines
Diff to previous 1.1 (colored)
update to pdksh-5.2.8
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 14 06:19:11 1996 UTC (27 years, 10 months ago) by downsj
Branch: pdksh
CVS Tags: pdksh-527
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
Import pdksh 5.2.7.
Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 06:19:11 1996 UTC (27 years, 10 months ago) by downsj
Branch: MAIN
Initial revision