zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Add unalias to Functions Index in doc
@ 2023-11-27  7:40 Dennis Eriksen
  2023-12-02 15:05 ` Jun. T
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Eriksen @ 2023-11-27  7:40 UTC (permalink / raw)
  To: zsh-workers

Hi,

I noticed `unalias` is missing from the Functions Index in the official
documentation [1].

Is there some reason it's missing? If not, here's a (very) small patch I
think will add it.

1: <https://zsh.sourceforge.io/Doc/Release/zsh_14.html#index_split-13_fn_letter-U>


---
 Doc/Zsh/builtins.yo | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 8f310f6cf..de5cbb90d 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -2414,6 +2414,7 @@ the symbolic form the permissions you specify are those which are to be
 allowed (not denied) to the users specified.
 )
 cindex(aliases, removing)
+findex(unalias)
 item(tt(unalias) [ tt(-ams) ] var(name) ...)(
 Removes aliases.  This command works the same as tt(unhash -a), except that
 the tt(-a) option removes all regular or global aliases, or with tt(-s)
-- 
2.42.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add unalias to Functions Index in doc
  2023-11-27  7:40 [PATCH] Add unalias to Functions Index in doc Dennis Eriksen
@ 2023-12-02 15:05 ` Jun. T
  0 siblings, 0 replies; 2+ messages in thread
From: Jun. T @ 2023-12-02 15:05 UTC (permalink / raw)
  To: zsh-workers


> 2023/11/27 16:40, Dennis Eriksen <d@ennis.no> wrote:
> 
> I noticed `unalias` is missing from the Functions Index in the official
> documentation [1].

Thank you for the report.
I've found (at least) two more functions need findex().


diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 8f310f6cf..cab265a25 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -683,6 +683,7 @@ the same as if the commands had been executed directly by the shell;
 if there are no var(args) or they contain no commands (i.e. are
 an empty string or whitespace) the return status is zero.
 )
+findex(exec)
 item(tt(exec) [ tt(-cl) ] [ tt(-a) var(argv0) ] [ var(command) [ var(arg) ... ] ])(
 Replace the current shell with var(command) rather than forking.
 If var(command) is a shell builtin command or a shell function,
@@ -1633,6 +1634,7 @@ cancels both tt(-p) and tt(-u).
 
 The tt(-c) or tt(-l) flags cancel any and all of tt(-kpquz).
 )
+findex(readonly)
 cindex(parameters, marking readonly)
 item(tt(readonly))(
 Same as tt(typeset -r).  With the tt(POSIX_BUILTINS) option set, same
@@ -2413,6 +2415,7 @@ the mask is printed as an octal number.  Note that in
 the symbolic form the permissions you specify are those which are to be
 allowed (not denied) to the users specified.
 )
+findex(unalias)
 cindex(aliases, removing)
 item(tt(unalias) [ tt(-ams) ] var(name) ...)(
 Removes aliases.  This command works the same as tt(unhash -a), except that



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-02 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27  7:40 [PATCH] Add unalias to Functions Index in doc Dennis Eriksen
2023-12-02 15:05 ` Jun. T

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).