3 ms·
"printenv" (or just "env", the one I habitually use) shows only environment variables, not all available functions and variables like "set" does. But otherwise
by Izkata 3y ago
"printenv" (or just "env", the one I habitually use) shows only environment variables, not all available functions and variables like "set" does.
But otherwise yeah, I also don't see this as obscure at all. Was expecting something confusing when, say, fiddling with arrays or something.
- 1vuio0pswjnm7 3y agoGood point about functions. Normally it's not something I notice because I'm not using Bash. But every once a while I use set in Bash and I'm blasted with a slew of preloaded functions.