Oliver Kiddle
35a2f155c3
51214: handle read -d and a delimiter that can't be decoded into a character
...
Terminate input at the raw byte value of the delimiter.
Also document and test the use of an empty string as a way to specify
NUL as the delimiter.
2022-12-17 00:37:19 +01:00
Bart Schaefer
159c892b9b
50855: Clarify how commands are hashed, and searched-for by "whence".
2022-10-31 16:50:16 -07:00
Bart Schaefer
6b5ee0c17c
users/28243: update "typeset +" documentation
2022-10-23 16:25:04 -07:00
Axel Beckert
361de369ed
50220: Documentation: Fix typos found by Debian's Lintian tool
2022-05-15 00:41:38 +02:00
Bart Schaefer
251772f8d1
unposted: cross-reference "typeset -f" for "functions -[Tt]"
2022-05-07 16:45:09 -07:00
Peter Stephenson
98e4634086
49906 (Bart), 49911: Fixes to querying jobs in subshell.
...
Don't attempt to query invalid job off end of table, resulting in
crashes from $jobtstates.
If background task started in subshell, look at tatsks within subshell
instead of main shell. Document and add test.
2022-03-30 09:28:43 +01:00
Peter Stephenson
24474bd34a
users/27536: Improved history list documentation
...
Clarify interaction of matching and numbers.
2022-03-01 10:47:49 +00:00
Mikael Magnusson
8bf0f0cf45
49694 + doc: Allow using empty STTY= to freeze tty for a single command
...
Previously, doing this would just run stty with no arguments, which
normally causes it to print some terminal settings to stdout.
2022-01-30 18:14:54 +01:00
Oliver Kiddle
271cfc685b
49534, 49539: separate watch/log functionality out into a module
2021-11-02 21:41:53 +01:00
Daniel Shahaf
1449f81183
users/26734: docs: read: Notate the parameter name argument as optional.
2021-08-14 14:07:08 +00:00
Daniel Shahaf
4202c0bbe3
48601/0004: docs: return: Give examples of using arithmetic evaluation.
2021-05-18 02:01:13 +00:00
Daniel Shahaf
b992d91059
48601/0003: docs: functions -M: Add a subheading and index entries.
2021-05-18 02:01:13 +00:00
Daniel Shahaf
f571aff1b2
48601/0002: docs: functions -M: Document the return status / result interdependency gotchas (cf. 48147).
2021-05-18 02:01:13 +00:00
Daniel Shahaf
6913eb6776
48601/0001: docs: functions -M: Move an example to be near the specification of the relevant flag
2021-05-18 02:01:13 +00:00
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