1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-09 09:06:38 +02:00
Commit Graph

242 Commits

Author SHA1 Message Date
dana c23a0d84b0 48614: getopts: Calculate OPTIND according to POSIX_BUILTINS 2021-05-03 18:11:38 -05:00
Bart Schaefer 82ff9f24f1 48560: add TYPESET_TO_UNSET option to remove initialization of parameters
Changes typeset such that ${newparam-notset} yields "notset" and
"typeset -p newparam" does not show an assignment to the parameter.  This
is similar to the default behavior of bash and ksh, with minor differences
in typeset output.

Also add tests for some POSIX incompatibilities plus minor changes for test
harness robustness.
2021-04-18 13:58:09 -07:00
Martijn Dekker 9c0533931c 48073: Add fc -s as POSIX way of rerunning command without starting editor 2021-02-17 10:21:08 +00:00
Mikael Magnusson d3a6dee9cd unposted: Fix typo 'my be' for typeset 2020-11-12 01:15:38 +01:00
Daniel Shahaf fa51a38955 46240: Make the expansion of manref()() in ztexi.yo match its expansion in zman.yo.
The difference was mostly harmless in the common case "(see manref(foo)(42))",
which expanded to "(see man page foo(42))" under ztexi.yo, but in other
contexts the ztexi.yo expansion was was nonsensical; for example:

    "the BSD manref(echo)(1) command"

    "the string returned by the manref(getlogin)(3) system call"

    "advisory file locking (via the manref(fcntl)(2) system call)"

    "this is the exact opposite from manref(ls)(1),"

While there, copyedit some uses of manref()().
2020-07-13 14:05:37 +00:00
Daniel Shahaf 7f58463dd3 users/24959/0001: Extend documentation of global aliases. 2020-06-27 00:53:02 +00:00
Stephane Chazelas da19b67388 45183: Improve documentation examples 2020-01-01 22:02:48 -06:00
Peter Stephenson cb4dc95643 45009: POSIX_CD needs to suppress some forms of option.
Otherwise forms of argument allowed by POSIX are interpreted as
options instead.
2019-12-12 10:47:00 +00:00
Ned Batchelder 63cc5279b3 github #37: Make it easier to understand what "fc -e" does. 2019-09-04 02:33:19 +00:00
Peter Stephenson 4fae525726 Copy functions using functions -c old new.
Documentation and test.
2019-08-03 19:53:51 +01:00
Peter Stephenson 876dccfe73 Update doc from previous commit.
Make it clear it's commands whose names begin with a /
that aren't hashed.  Obviously commands whose paths
begin with a / are OK, duh.
2019-03-19 14:22:34 +00:00
Charles Blake 084bf17c4b 44132: don't hash commands beginning with / 2019-03-19 14:09:50 +00:00
Martijn Dekker 2d056ebc31 43945 (tweaked to remove test failure, noted in test):
Fix exit statuses from wait for POSIX_BUILTINS mode.
Also add tests.
2018-12-30 18:11:43 +00:00
Peter Stephenson c4144bc95b unposted: doc tweak for helpfiles 2018-10-08 10:17:26 +01:00
Peter Stephenson f99f7dca75 43616: Various parameter setting and display fixes.
Mostly to do with typeset -p and tied variables and their interaction.

Some general tied variable fixes.
2018-10-08 10:10:42 +01:00
Daniel Shahaf 3f2bcceec8 43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour. 2018-09-25 23:29:06 +00:00
dana a435ab530f unposted: Fix trivial formatting error in docs 2018-09-16 18:39:55 -05:00
Peter Stephenson 557d1d7259 42399: document echo and behaviour of - and -- 2018-02-26 19:58:01 +00:00
Martijn Dekker b432d518e4 42004: fix parentheses in documentation 2017-11-11 12:42:51 +00:00
Daniel Shahaf 3b0c8bdac8 unposted: Document "typeset -p"'s optional argument in the inline synopsis. 2017-10-17 17:59:06 +00:00
Peter Stephenson 728f2adfc8 Add typeset -p1, like typeset -p with newlines 2017-10-01 17:53:56 +01:00
Peter Stephenson 91484e0d42 41679: slight clarification on exec of builtins 2017-09-13 10:47:16 +01:00
Peter Stephenson 27efa0efd4 41470: Another note on new effect of POSIX_BUILTINS
exec now won't find precommand modifiers after it with the
option set.  This may need further attention.
2017-08-01 09:37:26 +01:00
Peter Stephenson d4b94b5e83 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.
Document the default behaviour and add a test.
2017-07-27 09:22:04 +01:00
Peter Stephenson d5c22d356b 41244: Add zmodload -s option.
Doesn't complain if module is unavailable, but prints more
obscure errors.

Use existing low-level silent flag by passing through
intermediate module loading hierarchy.
2017-06-12 10:10:23 +01:00
Barton E. Schaefer eaeebeb8bb unposted: minor formatting: var() instead of tt(). 2017-04-01 15:23:43 -07:00
Daniel Shahaf d044530afd 40816: Document interaction of 'print -P' and 'print -f'. 2017-03-12 19:37:18 +00:00
Peter Stephenson 47c05f6b66 40622 with typos fixed: functions -Ms.
This adds the capability for mathematical functions based on shell
functions to have a string argument.  Module functions have had
this for a long time.
2017-03-01 10:01:01 +00:00
Peter Stephenson d8c66e65a2 40537: Document previous change to autoload 2017-02-13 16:34:27 +00:00
Peter Stephenson c861b17bbf 40391: Add WARN_NESTED_VAR option and functions -W.
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
2017-01-23 09:50:57 +00:00
Peter Stephenson f26d1ba6b0 Add features associated with autoloading a function using an absolute
path.

-d defaults to normal fpath

-r remembers the path without actually loading.  May be combined with -d.

-R does the same but it's an error if not found

-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
2017-01-11 11:26:13 +00:00
Phil Pennock 1db0eea95a 40318 (in part): Document echo \c behaviour. 2017-01-10 03:48:25 +00:00
Eitan Adler 110ffae9fe 40035: Cosmetic fixes for comments and documentation.
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Oliver Kiddle 4b41e33cbc 39389: when printf -v is used with an array use separate elements each time the format is reused 2016-11-05 00:27:47 +01:00
Barton E. Schaefer 0a5bf8e767 unposted: update or remove references to typeset behavior obsoleted by 35586. 2016-09-30 15:57:15 -07:00
Oliver Kiddle fc286168ed unposted: fix duplicated words 2016-07-08 22:21:42 +02:00
Daniel Shahaf 7badf262c1 38653 + 38657: 'functions -T' tracing: recurse into anonymous functions. 2016-06-13 08:53:18 +00:00
Axel Beckert 1bf2ba4f19 unposted: Doc/Zsh/builtins.yo: Fix typo
Found by Debian's lintian tool.
2016-05-06 21:32:11 +02:00
Barton E. Schaefer 1ea94513cc Dmitry Marakasov: 38162: accept G for gigabytes in limit command
from github pull request - some formatting edited
2016-03-26 09:45:47 -07:00
Peter Stephenson db3f2d253c 37893: document typeset -U behaviour for PATH-style variables 2016-02-09 16:03:36 +00:00
Daniel Shahaf b0706d64ee 37896: zshbuiltins: Document argv behaviour of 'source' without arguments 2016-02-09 03:39:17 +00:00
Barton E. Schaefer 0baf57701c 37845: Forward-reference typeset instances where no parameter is created, and remove the obsolete statement about array assignments separated from typeset command on -p. 2016-01-31 15:17:44 -08:00
Barton E. Schaefer 31d0bc1cdc 37844: reorder typeset introduction to keep related concepts together. 2016-01-30 13:07:04 -08:00
Daniel Shahaf 3b69b121de 37831: typeset: Document exit status difference from parameter assignment statements 2016-01-30 07:37:46 +00:00
Barton E. Schaefer 03adf52414 37493: readonly + POSIX_BUILTINS == typeset -gr 2016-01-02 12:40:31 -08:00
Barton E. Schaefer 15b73ea99b 37467: add "print -v var" / "printf -v var" 2015-12-31 12:38:10 -08:00
Peter Stephenson dfd761058e 37310: effect of disabling typeset reserved word 2015-12-07 09:44:06 +00:00
Jun-ichi Takimoto d5ba08af49 unposted: a few cosmetic format fixes in docs 2015-11-13 01:03:38 +09:00
Peter Stephenson ba36967b57 37038: add -l option to emulate to list options in emulations 2015-11-01 18:12:40 +00:00
Barton E. Schaefer d1a810b000 remove sentence fragment 2015-09-30 19:58:43 -07:00