https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296050

--- Comment #3 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=556e793d803e12e9ad9361c6c53ed0433151f41e

commit 556e793d803e12e9ad9361c6c53ed0433151f41e
Author:     Dag-Erling Smørgrav <[email protected]>
AuthorDate: 2026-06-16 20:23:18 +0000
Commit:     Dag-Erling Smørgrav <[email protected]>
CommitDate: 2026-06-16 20:23:18 +0000

    sh: Improve function documentation

    * Mention that the function body can be in parentheses.  It is already
      implied since the function body can be any valid statement, but it may
      not be obvious to a reader who has only ever seen functions that used
      curly brackets and assumes that they are part of the function syntax.

    * Remove the incorrect claim that a local statement may only occur at
      the top of a function.

    * Show that a value may be assigned to a variable in a local statement.

    * While here, replace unpaired double quotes with \(dq to avoid
      confusing syntax highlighters.

    PR:             296050
    MFC after:      1 week
    Reviewed by:    ziaee, jilles
    Differential Revision:  https://reviews.freebsd.org/D57596

 bin/sh/sh.1 | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to