Barton E. Schaefer
3ba5e6b909
Merge branch 'master' into schaefer/badarrays
2017-06-01 14:47:45 -07:00
Barton E. Schaefer
281e4017d7
Special-case typeset -c / -C because of PM_* renumbering
2017-06-01 14:47:08 -07:00
Peter Stephenson
a6135f6114
41191: Check for immortal thingies when checking for specific thingies
2017-06-01 17:56:14 +01:00
Jun-ichi Takimoto
01fb569009
41177: _nm: add support for macOS and OpenBSD
2017-06-01 00:11:41 +09:00
Barton E. Schaefer
77fb699ada
Finish merging arrcachelen() changes, I think.
2017-05-30 22:24:35 -07:00
Barton E. Schaefer
544632f718
Fix remaining IPDEF macros for addition of param.length
2017-05-30 21:20:45 -07:00
Barton E. Schaefer
399a23806f
Merge branch 'master' into schaefer/badarrays
2017-05-30 20:56:09 -07:00
Barton E. Schaefer
e4c33c6b14
Renumber PM_CACHLEN and PM_CHECKLEN
2017-05-30 20:55:43 -07:00
Peter Stephenson
151a4660e2
41164: Don't free a history entry if it's curline.
...
This replaces 41113 / 94014ff65b
with a simple local change for the
immediate problem. It's not entirely clear if this reflects wider
changes in the structure of the history code.
2017-05-30 09:39:32 +01:00
Sebastian Gniazdowski
284b5aaeb0
41151: propagate flags when creating new parameter
2017-05-28 13:17:26 -07:00
Sebastian Gniazdowski
ca0607c4c2
41153: finish module setup only after all error conditions have been checked
2017-05-28 13:15:06 -07:00
Barton E. Schaefer
bcdfcb2765
Merge branch 'mikachu/badarrays' into schaefer/badarrays
2017-05-28 12:29:29 -07:00
Barton E. Schaefer
11304f7318
unposted: clarify ZLS_COLORS pattern matching contexts
2017-05-28 11:32:10 -07:00
Barton E. Schaefer
5ded0ad967
41159: handle "Include" and "HostName" lines in ~/.ssh/config
...
Added 2>/dev/null to conceal file access errors.
2017-05-28 11:27:55 -07:00
Sebastian Gniazdowski
62c416915b
41146: careul in GDBM freeing strings with embedded nulls
2017-05-24 15:55:42 +01:00
Sebastian Gniazdowski
135075e48c
40898: fix GDBM error handling
2017-05-24 15:53:42 +01:00
Stephane Chazelas
99fff8f15c
41142: Ensure close-on-exec is passed to moved file descriptor
2017-05-23 17:03:31 +01:00
Marko Myllynen
dd672b79ce
41087: Update kvno completion to MIT krb 1.14
2017-05-22 15:00:41 +01:00
Marko Myllynen
eacb87988e
41086: Update librt completions
2017-05-22 14:58:49 +01:00
Marko Myllynen
d14686860d
41085: Update OpenStack completions
2017-05-22 14:57:21 +01:00
Jörg Sommer
f667cfcc68
41128: typo in compsys documentation
2017-05-22 10:10:07 +01:00
Peter Stephenson
14b5fae69e
users/22707: Document extra use of accept-exact-dirs
...
It allows completion after magically appearing directories that
dont't show up in the parent directory by supressing searching
of the parent directory if the subdirectory is directly found
to exist.
2017-05-19 11:16:10 +01:00
Peter Stephenson
94014ff65b
41113 (tweaked): Save current line linkage to history ring.
...
When saving history state save whether the current history line
is linked into the ring and remove it, and restore as appropriate
later. This avoids surprises where the history ring is freed
and incorrectly frees the current state in curline, which has
a different allocation strategy.
Original patch tweaked to make restoring more logical.
2017-05-18 09:33:08 +01:00
Jun-ichi Takimoto
171e7fa4c1
41090: Replace iswprint() if unicode9 is enabled.
...
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00
Peter Stephenson
4bb81eefbd
41096: Don't assume null termination copying string.
...
At this point the string may contain embedded nulls or not have
a null termination at all.
Also, as we always have the length memcpy() is more efficient.
2017-05-11 17:33:30 +01:00
Peter Stephenson
1caaa933b4
unposted: Adding comments to test changed line number in output
2017-05-09 21:02:34 +01:00
Peter Stephenson
c7a9cf465d
40181: Fix buffer overrun in xsymlinks.
...
There was no check for copying to the internal xbuf2 for a
preliminary test.
2017-05-09 17:49:18 +01:00
Peter Stephenson
263a0c2476
41078: Empty psvar could cause bad dereference in prompt expansion
2017-05-09 09:46:23 +01:00
Jan Kryl
51eff6168e
41095: Use 2>&- in completion to avoide restricted shell problem.
2017-05-08 18:03:05 +01:00
Peter Stephenson
af1c82d646
40173: Off-by-one error checking for {varid}.
...
This caused a single unprintable character in braces before a
redirection to be treated as an indentifier.
2017-05-08 18:00:55 +01:00
Peter Stephenson
641a764b82
users/22688: Allow mixing redirs and arguments after anon functions.
...
These are parsed differently from the case of normal functions which
can't take normal arguments at that point.
2017-05-08 17:19:22 +01:00
Peter Stephenson
f25d01a97c
Fix combination of HERE document and |&.
...
A missing flag setting up the HERE document mean that the size
of the wordcode needed to append the 2>&1 was counted incorrectly,
so the resulting wordcode was garbled.
Add test.
2017-05-08 10:54:08 +01:00
Daniel Shahaf
aa8157b463
41038: Document recent, backwards-compatible precommand modifiers changes.
2017-05-04 19:37:13 +00:00
Peter Stephenson
21b195562a
41043: Close pipes in shell when disowning background job.
...
This was missing in the case of &,, causing a file descriptor leak.
2017-05-03 11:30:15 +01:00
Peter Stephenson
ab6f30350a
unposted: Use typeset -g in insert-unicode-char
...
Avoid warning from WARN_NESTED_VAR if set.
2017-05-02 09:39:53 +01:00
Peter Stephenson
ed4e37e45c
41020: Fix "command -p"; "-p" was incorrectly left in command arguments
...
Also add tests for known precommand modifier issues.
2017-04-28 10:22:43 +01:00
Peter Stephenson
d7110d8f01
41012: Fix premature exit from nested function in EXIT trap.
...
Also add check so we don't delay an exit if we were already in
an EXIT trap for the main shell, as we should in that case leave
immediately.
2017-04-27 18:56:18 +01:00
Peter Stephenson
48b0daf3d4
41016: Test that quoted precommand modifiers now work
2017-04-27 09:58:45 +01:00
Oliver Kiddle
4228d98c6b
unposted: fix syntax on line end
2017-04-26 16:35:29 +02:00
Oliver Kiddle
78afb218b0
40965: fix for missing local declarations of expl
2017-04-26 16:32:10 +02:00
Peter Stephenson
408b92b168
41008: Handle expansions for precommand modifiers
2017-04-26 09:44:38 +01:00
Jun-ichi Takimoto
d78b02218e
41006: _ls: new optiosns and a few fixes
2017-04-26 13:40:03 +09:00
Daniel Hahler
4fa7c6aecc
40943: __git_recent_commits: prefer recent commit objects
...
Without this "commit to be amended" shows up before "recent commit object
name" with `git commit --fixup`, but the recent commit objects are the
most useful here.
2017-04-23 22:27:38 +02:00
Peter Stephenson
68466f327e
40995: Don't disable alias expansion when finding command substitution limits
...
This is needed in some unusual cases in order to identify the exit
condition without encountering a parse error.
2017-04-23 17:06:26 +01:00
Jun-ichi Takimoto
3c78f14d5c
40994: unmeta_one() need not count Meta
2017-04-23 23:58:44 +09:00
Peter Stephenson
a2e2f5668d
40990: Fix crash with bogus path in sh emaulation.
...
When startying in sh emulation don't link PATH-style parameters
to array equivalents. To allow this to function, don't check
for the linkage when exporting the colon-separated parameter.
2017-04-21 18:07:42 +01:00
Daniel Shahaf
6cc6942cf5
40973: _remote_files: Fix completion of remote files that start with a hyphen/minus.
2017-04-18 20:14:47 +00:00
Barton E. Schaefer
fc96274801
40977: "emulate" disallows "--help" and "--version"
2017-04-15 21:16:11 -07:00
Orlov Sergey
a11b241d4a
40935: User names need metafying.
...
On some systems they can contain 8-bit characters and on all systems
this is logically correct anyway.
2017-04-10 09:55:06 +01:00
Bart Schaefer
ca2a43f23c
40940: untokenize names of condition features before attempting to look up the definition from a module.
...
Necessary because of 40760 (tokenization of '-' as Dash).
2017-04-07 22:35:00 -07:00