Timeline for How can I list all shell variables?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 29, 2023 at 6:06 | comment | added | Ethan | compgen -e displays only exported shell variables. Details and other options in this answer. | |
| Dec 26, 2014 at 19:15 | history | edited | MariusMatutiae | CC BY-SA 3.0 | added 329 characters in body |
| Dec 26, 2014 at 17:05 | comment | added | mikeserv | export has no advantage over set, at least, when it comes to quoting for shell re-entry. And printenv and env are not at all about shell variables, though these do often coincide with environment variables. | |
| Dec 26, 2014 at 15:36 | history | answered | MariusMatutiae | CC BY-SA 3.0 |