binpash / try

Inspect a command's effects before modifying your live system
MIT License
5.17k stars 64 forks source link

try not preserving env vars #144

Closed ezrizhu closed 5 months ago

ezrizhu commented 5 months ago

eric in ide0 in ~ λ try echo a
a

eric in ide0 in ~ λ try export abc=123

eric in ide0 in ~ λ echo $abc

ezrizhu commented 5 months ago

@mgree is this intended or should we work on fixing this

angelhof commented 5 months ago

It is expected! Since we run this export in a subshell there is no way to export them out of try. I think we should close it.