Commit Graph

433 Commits

Author SHA1 Message Date
tg 06b2d53ea2 use \\builtin ipv \let] and \set internally 2017-03-19 20:59:29 +00:00
tg 73dca6e90f use the new “\builtin” builtin for quoting, everywhere 2017-03-19 20:36:08 +00:00
tg c3fe9d5fb5 Haiku-related ulimit overhaul:
• print ulimit -a with the flag, like most other shells do
• move ulimit-1 regression test to ulimit-2 and exclude on Haiku:
  it can only set the -n and -V limits AFAICT
• document that some OSes (here: Haiku) can only set the soft limits
  (so “ulimit -nS 1024” is okay but -S is required)
• check “ulimit -c 0”, which dot.mkshrc uses, everywhere
  (if it errors out, hack around it or stub it out with MKSH_NO_LIMITS)
2017-03-19 18:05:29 +00:00
tg c98c8e9f5f further change typeset scope description, inspired by Martijn Dekker 2017-03-19 16:48:51 +00:00
tg 5b63e5dcb6 implement “typeset -g”, From: Martijn Dekker <martijn@inlv.org>
also deprecate “global”; thanks!
2017-03-17 22:45:53 +00:00
tg 065f9554fa fix GNU groff-only formatting bug in the manpage
From: Jean Delvare <jdelvare@suse.de>
2017-03-14 11:32:56 +00:00
tg acf7909fe8 add OS/2 PATH note, for komh 2017-03-12 02:34:54 +00:00
tg 59219161fb document the declaration utility stuff and the new \builtin
also, make global a declaration utility
2017-03-12 02:31:02 +00:00
tg ff72ba8399 make “builtin” and “wait” not special
(“\builtin” likely also doesn’t need it, as “command” isn’t)
2017-03-11 23:10:41 +00:00
tg a112d69c56 add missing -e to print synopsis; From: Jean Delvare <jdelvare@suse.de>
also add missing .Ns (no space) between -u and [n] in its option list
2017-02-27 16:08:04 +00:00
tg 287507fb21 there’s no evidence for -e in any BSD echo (but in ksh93 print)
spotted by Jean Delvare <jdelvare@suse.de> and Werner Fink <werner@suse.de>
2017-02-17 22:28:26 +00:00
tg 0cdc87055f improve rendering of contact information 2017-02-17 20:41:56 +00:00
tg 93162d8c3a undocument printf(1), it causes user confusion 2017-02-17 20:38:16 +00:00
tg 7b4bee7e58 collective R54 release preparation multi-merger:
install both lksh and mksh manpages from Build.sh (Martijn Dekker)
spelling fixes (Larry Hynes)
manpage improvements (Martijn Dekker)
initial port to Harvey-OS’ APEX (Ronald G. Minnich, Elbing Miss, Álvaro Jurado)
more from komh’s OS/2 port (KO Myung-Hun)
2016-11-11 23:31:39 +00:00
tg 3aac3c30b5 return 128+SIGALRM if read with timeout timeouts, inspired by GNU bash 2016-11-11 22:17:09 +00:00
tg 945ef46af1 document print builtin changes 2016-11-11 21:37:44 +00:00
tg 9c602791b2 today, Andreas Buschka learnt that the Oxford comma is an american thing
(except for exactly the University of Oxford or to disambiguate)
2016-09-29 09:04:56 +00:00
tg bb796ff785 simplify manpage and code; streamline manpage formatting and Satzzeichen 2016-08-24 20:40:00 +00:00
tg 35bd16ddfa this bug has long been fixed 2016-08-24 19:36:26 +00:00
tg 91b5d4b3ad remove all mentions of “the null string”, it’s an empty string (in most
cases), or an unset parameter (in some cases)
2016-08-24 19:35:26 +00:00
tg bb7226277b fixes 2016-08-10 18:20:05 +00:00
tg b58ff810a5 mention bases can (naturally…) only go up to 36, requested by izabera 2016-08-10 18:15:18 +00:00
tg 3e8165b9cd fix groff issue pointed out by lintian
surprisingly enough, no changes needed for the gcc6 switch in Debian sid…
2016-08-04 09:27:59 +00:00
tg a99bb8baa0 quote the &, for POSIX:
An  ordinary  character  is  a  pattern  that  shall  match itself. It can be any
   character  in  the  supported  character  set except for NUL, those special shell
   characters  in [199]Quoting that require quoting, and the following three special
			⇓
   The  application  shall  quote  the following characters if they are to represent
   themselves:

|  &  ;  <  >  (  )  $  `  \  "  '  <space>  <tab>  <newline>
2016-08-03 17:34:12 +00:00
tg 757e25fb21 implement $KSH_MATCH and, to make it usable, ${foo@/bar/baz};
add a real-life example (for slagtc’s programmable tab completion)
to the manpage
2016-08-01 21:38:07 +00:00
tg 6551fd5a86 move EPOCHREALTIME to correct location, drop ERRNO (wtf?) 2016-08-01 19:40:00 +00:00
tg 984894f093 >>> is not needed (LP#1608505) 2016-08-01 19:11:27 +00:00
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