Age | Commit message (Collapse) | Author |
|
are balanced.
OK millert@ and tb@
|
|
OK tb@
|
|
This is similar to what vi/ex does and removes the final BACKWARDS flag.
Behaviour requested by and OK tb@
|
|
behaviour.
OK tb@
|
|
Most terminals have scrollback options, or can be achieved via tmux, so
it's not needed.
OK millert@
|
|
POSIX states: "An empty command list shall be equivalent to the p command",
so changing the behaviour of a null-command in any other case is a
violation of POSIX.
OK millert@
|
|
code and removes a few BACKWARDS flags.
OK otto@
|
|
'$' characters are escaped, so that we are POSIX compliant.
The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.
I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.
Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.
OK tb@, guenther@, and mwl@mwl.io
|
|
trying to quit.
Diff from Tim Chase
OK tb@ and millert@
|
|
|
|
|
|
passing empty format strings to printf-family functions; ok millert@
|
|
as per POSIX. With this patch, ",n" is an abbreviation for "1,n",
";n" abbreviates ".;n". The "n," and "n;" variants mean "n,n" and "n;n",
respectively.
Patch from Jerome FRGAGIC; ok stefan, deraadt
|
|
Found because of a hint by and OK schwarze@.
|
|
If a zero-length match is found do the replacement and increment the start point
for the next search by one. This allows for commands like s/^/- /
This brings the behaviour closer to the way sed and vi work.
OK schwarze@
|
|
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);
ok otto
|
|
modified flag.
from Jerome Frgacic (jerome.frgacic (at) yahoo.fr)
ok tb
|
|
nit fix and OK schwarze@
|
|
from Edgar Pettijohn, ok and with input from tb@
|
|
from Edgar Pettijohn, correction from deraadt@
|
|
sense to document that posix more or less says something should happen,
and that it does.
jmc
|
|
off and then on again with 'P'.
ok daniel@
|
|
Fortunately, we don't need it as we only pass siglongjmp() a single value.
ok deraadt@
|
|
|
|
buffer to construct error messages.
with input by and ok millert@
|
|
ok millert@
|
|
Also make stdin unbuffered since that is the same as using a
single-byte buffer. OK tobias@
|
|
|
|
it is a shell (it has a !command). tty because it uses TIOCGWINSZ in
a SIGWINCH handler.
|
|
just use regex_t directly.
|
|
SIGWINCH, it is not POSIX but it is a defacto standard.
OK deraadt@
|
|
In some cases, do additional cleanup in the immediate vicinity.
|
|
|
|
rather than sharing one variable unsafely.
ok millert
|
|
|
|
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.
we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/
i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
|
|
Tested to match gnu by sobrado@; on solaris you probably need to use xpg6
utils to get this behaviour.
ok krw@, deraadt@.
|
|
From Benjamin Scher Purcell.
|
|
Reconstruct a passing t.t based on the input data (t.d) and the
expected result (t.r).
|
|
|
|
originally reported by ezequiel garz?n
|
|
ok deraadt guenther
|
|
of a pointer or non-const array, as that minimizes the symbols,
maximizes the placement into read-only memory, and avoids warnings
from gcc -Wformat=2 when they're used as format strings.
|
|
ok millert@
|
|
okay miod@, millert@
|
|
from Daniel Dickman
|
|
|
|
|