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

--- Comment #4 from [email protected] ---
A commit in branch stable/15 references this bug:

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

commit ea13334abd9f4ed5456ba58970ee426a48c9c8e6
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-20 19:02:47 +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

    (cherry picked from commit 556e793d803e12e9ad9361c6c53ed0433151f41e)

    sh: Belatedly bump manual page date

    Fixes:          556e793d803e ("sh: Improve function documentation")
    (cherry picked from commit 09bb0b0d13968163c7394e9168491b16607fc2e7)

 bin/sh/sh.1 | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

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

Reply via email to