Discussion: Variable scoping (do we really need export)
Created by: skylerberg
I have what may be a radical, and possibly bad idea: export everything.
I think having two different classes of variables is an unnecessary complication that adds unneeded state to the shell. What if we just used the environment for everything?
- Simplicity in the shell application
- Less state moving around the application
- Easier to learn
- Performance: Needs to interact with the OS for variable assignments.
- Data leaking: Sending data to child processes that do not need it.