smartcd
smartcd copied to clipboard
varstash: export the variable for storing stashed vars
trafficstars
Not sure if this is really smart, but I've added it a while back for zsh-autoenv (https://github.com/Tarrasch/zsh-autoenv/commit/c4e388980e44c339b4f1246e7b1f3ee6e3ac1b38).
That's interesting. Is there a use case that this supports?
I'm hesitant because, once it's exported it's part of the interface and someone's will dog will die and they'll get fired if we ever need to take it out.
@cxreg - any thoughts?
it's part of the interface
I think it's more an issue of security, i.e. exporting makes it available for subcommands, which might possibly leak data.
The reason for doing this was to handle it correctly in subshells (IIRC).