tg
dd281c52ec
defer to external rename(1) too
2016-07-26 21:50:46 +00:00
tg
9dbd643504
implement new evaluate-region editing command (!MKSH_SMALL)
...
while here, fixup x_redraw refactoring x_clrtoeol, x_pprompt, and x_lastpos
2016-07-26 21:37:26 +00:00
tg
f9d131133e
remove fd>9 support in favour of upcoming named file descriptors; bump
2016-07-25 21:05:25 +00:00
tg
2364bb5f22
use ^< and ^> for ROL and ROR in R53, schedule >>> as SAR for R54
...
cf. http://david.tribble.com/text/c0xrot.htm
2016-07-25 20:41:23 +00:00
tg
54a8067fd2
add print -A for R53
2016-07-25 20:38:04 +00:00
tg
816614d3ce
re-add realpath to prefer-external-if-argument, needed by Debian
2016-07-24 23:11:51 +00:00
tg
e0e63c65e6
fix issues with home directory replacement, from Torsten Sillke:
...
• if $PWD = ${HOME}foo, no longer show as ~foo in PS1
• simplify ~, ~+, and ~- exactly as $PWD is upon shell entry
(fixes HOME=/home/./foo but PWD=/home/foo)
2016-07-24 23:05:52 +00:00
tg
2dde57ab54
document ^U key binding advice
...
this is “GNU bash mode”, for bleb via IRC
2016-06-25 23:52:06 +00:00
tg
8a93f7d1dd
improve description of default Emacs mode keybindings
2016-06-25 23:51:21 +00:00
tg
b5127b03be
deprecate *not* using MKSH_CONSERVATIVE_FDS; named fds coming soon
...
partially reverts commitid 10048752E6271CABA24 (the manpage, mostly)
and adds a deprecation warning at build time; suggested by izabera
2016-06-25 23:49:13 +00:00
tg
f555d1d524
premark <<< for deletion, >>> for SAR, ^< and ^> for ROL/ROR
...
cf. http://david.tribble.com/text/c0xrot.htm
noted by izabera
2016-06-25 23:48:10 +00:00
tg
3d130b606a
give C_VAR1 precedence over display variable name; izabera pointed out,
...
rightfully, that, in POSIX shell, ${!#} is defined, and ${!#123} should work
2016-05-05 22:45:58 +00:00
tg
838833ba86
pass on RCSID
2016-03-12 20:45:38 +00:00
tg
842e353011
lintian has new spelling warnings
2016-03-06 21:01:28 +00:00
tg
4ccfd5fab5
document upcoming set +o changes; bump
2016-03-04 18:28:42 +00:00
tg
539714f78a
there was a comment on 1015; change comments to match, no code change
2016-03-01 19:22:31 +00:00
tg
143c2aa69c
bring documentation of command up to date wrt. POSIX and whence wrt. command
...
(inspired from a bugreport by Martijn Dekker who noted this is currently broken)
2016-02-26 19:38:42 +00:00
tg
19ab699100
fix working with ditroff on Schillix, confirmed by Jvrg
2016-02-11 19:00:50 +00:00
tg
91ae6ad199
update
2016-01-20 22:04:54 +00:00
tg
c51e067e62
incorporate more feedback from schily
2016-01-14 23:18:11 +00:00
tg
2492c5692b
incorporate suggestions by J�rg Schilling
2016-01-13 17:20:52 +00:00
tg
678fd25b36
be clearer on what we do to the array on read -a other than clearing it
2016-01-12 16:33:17 +00:00
tg
f0b83e194a
future directions; izabera’s got a point and we’ll need two locales (C and
...
C.UTF-8), but we’ll need this in MirBSD a̲n̲d̲ audit its scripts first
2015-12-31 20:25:48 +00:00
tg
b2b0c0bbb6
update for recent changes
2015-12-12 22:25:15 +00:00
tg
cef386fb60
make “source” into a built-in command (keepasn, to match ksh93 and “dot”);
...
remove the “stop” alias and drop old Android and OS/2 hacks and auto-unalias
2015-10-09 21:36:59 +00:00
tg
52b0370973
some doc overhaul/bugfixes; TODO: document all of FPOSIX, FSH deltas
...
(after working through lksh.1 and deciding on them)
2015-10-09 20:43:11 +00:00
tg
4adcfe8b58
oksh sync, simplify *all* if(x)free(x); constructs, simplify x_push() and sync boilerplate while here
2015-09-05 19:19:12 +00:00
tg
92978953b2
; on OS/2
2015-08-13 22:09:10 +00:00
tg
0df20b04b8
documentation update (external links), from _0bitcount via IRC
2015-07-12 19:09:50 +00:00
tg
fd37f4baf0
POSIX doesn’t like the OPTU encoding scheme due to btowc/mbtowc asymmetry,
...
so make all utf8-mode behaviour implementation-defined (and document the
raw octet mapping more explicitly)
2015-07-10 19:35:39 +00:00
tg
0fd9337123
implement support for PC scancodes à la CHR$(0)+CHR$(&h48)
...
superseding an mksh-os2 patch which confirmed this is needed
Reference: my copy of the Schneider EURO PC manual 50032 for
Microsoft® GW-BASIC
2015-07-10 18:41:07 +00:00
tg
dcd8b6389b
apply the new cat hack to printf, too, to prefer it over the builtin
2015-07-09 20:20:45 +00:00
tg
483536e336
point out mknod is not normally part of mksh either
2015-07-09 19:50:44 +00:00
tg
f463d9da76
• revert the cat hack for realpath and rename
...
‣ I was convinced by several that more magic is never the solution
• fix a comment: function cat already had precedence
• change cat loader to look for existence, FPATH included, before
ditching the builtin; note that in manpage
2015-07-06 17:48:37 +00:00
tg
e0196f47d5
implement completely new multiline code by delaying history store
...
this commit is valgrind-tested
2015-07-05 19:37:18 +00:00
tg
48af854117
fix 'command -v' for "shell reserved words"
...
From: Martijn Dekker <martijn@inlv.org>
also adjust manpage accordingly
2015-07-05 17:50:40 +00:00
tg
b9a8fdf905
implement cat thing for realpath and rename too: if flag, call external
2015-07-05 15:45:18 +00:00
tg
b478d334d9
merge spelling stuff from oksh
2015-07-05 15:22:41 +00:00
tg
0bdc395a81
permit read -N n (n ≠ -1) and read -t to return partial reads with $? == 1
...
issue spotted by carstenh, could have been a documentation ambiguity issue
(as -N was designed to read and return exactly n bytes), but this resolves
it in a way both backwards-compatible and user-pleasing
2015-06-28 14:57:25 +00:00
tg
babd9c4cf0
The check for empty patterns and patterns matching the empty string
...
in commitid 1004D8283F068C41C3C was bogus; it fixed Jb_boin’s issue
but izabers’s 「var=foo; echo "${var/*/x}"」 was broken; in fact we
only want to not do the looping for // if the pattern matches much.
Also, fix a spelling mistake in the manpage and change some wording
to also work with associative arrays (in the future; no change).
2015-05-23 17:43:22 +00:00
tg
93ccb42114
overhaul the signal handling:
...
• support NSIG_MAX from http://austingroupbugs.net/view.php?id=741
and make a TODO for later to use sysconf(_SC_NSIG) at runtime
• bounds-check signals (e.g. no smaller than 1, but smaller than NSIG)
• align trap errorlevel with other shells
• make trap match what’s in POSIX and fixup the manpage
• refactor some code related to signals
• hide from kill builtin both EXIT and ERR pseudo-signals
2015-04-29 20:44:37 +00:00
tg
4a33198f45
manpage fixes (mostly \-x to Fl x inline)
2015-04-29 20:13:26 +00:00
tg
0661df9940
fix lies; this had to be taken out for security reasons some time ago
2015-04-29 18:56:00 +00:00
tg
82bc5eba9a
give a better suggestion: find|read → find|&read
2015-04-29 18:54:05 +00:00
tg
c9ccf0bab7
MFC remaining fixes; tested locally a lot, plus remotely with
...
GNU C11 (Debian 20150413-1) version 5.0.1 20150413 (prerelease) [gcc-5-branch revision 222050] (x86_64-linux-gnu)
including ASan (testsuite) and Valgrind (short)
2015-04-19 19:18:07 +00:00
tg
4bea0cc227
MFC most things (see mksh.hts) to R50-stable; sync clog
2015-04-12 22:32:12 +00:00
tg
cad9bc86d3
Implement the “FKSH functions have local scope for shell options” feature
...
for mksh but not lksh; bump to R51-alpha.
While here, tweak build scripts a bit, fixup MirBSD-specific Makefile
things, remove part of a comment that’s uninteresting.
2015-04-11 23:28:21 +00:00
tg
3251f18c12
document code to make mksh set ±U match the user locale from the environment
...
cf. http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/1246729/focus=606
2015-04-11 22:35:10 +00:00
tg
6b00977053
just another oksh rcsid-only sync (we bind to the Delete key since forever)
2015-04-11 22:09:49 +00:00
tg
0620a5d034
sync clog
2015-03-21 00:12:46 +00:00