Date: Thu, 29 Jun 2023 23:05:38 +0100
From: Kerin Millar <[email protected]>
Message-ID: <[email protected]>
| The thing is that portage also has a legitimate stake in needing
| to enumerate all variable names.
Why isn't "set" good enough for that?
(set -o posix; set) | sed 's/=.*$//' | whatever_processes_them
You need posix mode, so bash doesn't dump functions as well (which IMO
it shouldn't do with set, ever, but has probably been doing it since
prehistoric times, and somewhere, there's probably 1 user depending upon it...)
kre