[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mysteries with the placeholder variable _
From: |
Robert Elz |
Subject: |
Re: mysteries with the placeholder variable _ |
Date: |
Sun, 13 Dec 2020 07:22:22 +0700 |
Date: Sat, 12 Dec 2020 23:51:19 +0100
From: =?UTF-8?B?TMOpYSBHcmlz?= <lea.gris@noiraude.net>
Message-ID: <db238789-5c92-0b2d-a055-ce60e0be2a3b@noiraude.net>
| - I thought the placeholder variable _
It isn't really a placeholder variable, it is a magic piece of sh*t
invented by ksh (initially) to fill the role that !$ had in csh
(bash has !$ so it isn't needed for that in bash, and $_ is/was a
VERY poor substitute in any case).
Then it was given all kinds of other meanings in other contexts.
The whole thing is a disaster, just do your best to forget it exists,
and *never* use it for anything.
kre