[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String substitution bug
From: |
Martin D Kealey |
Subject: |
Re: String substitution bug |
Date: |
Mon, 25 Nov 2024 15:33:14 +1000 |
On Mon, 25 Nov 2024 at 01:08, Andreas Kähäri <andreas.kahari@abc.se> wrote:
> I don't agree that the special parameters should be written as $! etc.
> since those are their _values_ when used in the shell (exactness is a
> virtue in a manual).
>
In a *printed* manual I would agree with you, but in a man page where the
only practical navigation is by means of the search function provided by
the user's pager, showing only a bare single symbol renders that search
facility useless to most users.
Exactitude is a virtue when it serves comprehension and thus utility.
When it impedes utility then it's time to yield to common sense and
compassion.
-Martin
PS: point of order: $! is not the *value* of the variable !, but rather the
two-symbol syntax that when *executed* results in its value being
substituted. When read by a human, it's context-dependent whether the human
is expected to make that substitution, or that the “$” is an informal way
to disambiguate the following word or symbol as the name of a variable. But
even allowing for that, yes it grates when people say things like “assign
to $IFS”. If only this were Perl...
- Re: String substitution bug, (continued)
- Re: String substitution bug, Andreas Kähäri, 2024/11/24
- Re: String substitution bug, Martin D Kealey, 2024/11/24
- Re: String substitution bug, Oğuz, 2024/11/24
- Re: String substitution bug, Martin D Kealey, 2024/11/25
- Re: String substitution bug, Zachary Santer, 2024/11/25
- Re: String substitution bug, Martin D Kealey, 2024/11/25
- Re: String substitution bug, Greg Wooledge, 2024/11/24
- Re: String substitution bug, Andreas Kähäri, 2024/11/24
- Re: String substitution bug, Lawrence Velázquez, 2024/11/24
- Re: String substitution bug, Andreas Kähäri, 2024/11/25
- Re: String substitution bug,
Martin D Kealey <=
- Re: String substitution bug, Zachary Santer, 2024/11/24
- Re: String substitution bug, Andreas Kähäri, 2024/11/25
- Re: String substitution bug, Chet Ramey, 2024/11/25
- Re: String substitution bug, marcel.plch, 2024/11/25
- Re: String substitution bug, Lawrence Velázquez, 2024/11/25
- Re: String substitution bug, Lawrence Velázquez, 2024/11/25
- Re: String substitution bug, Chet Ramey, 2024/11/25
- Re: String substitution bug, Chet Ramey, 2024/11/25
Re: String substitution bug, Wiley Young, 2024/11/26