smartcd icon indicating copy to clipboard operation
smartcd copied to clipboard

varstash: export the variable for storing stashed vars

Open blueyed opened this issue 8 years ago • 2 comments
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).

blueyed avatar Apr 23 '17 19:04 blueyed

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?

daotoad avatar Feb 09 '18 04:02 daotoad

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).

blueyed avatar Feb 11 '18 18:02 blueyed