Shopify / shadowenv

reversible directory-local environment variable manipulations
https://shopify.github.io/shadowenv/
MIT License
396 stars 18 forks source link

Fish: source the hook code, don't eval line-by-line #90

Closed rwy7 closed 1 year ago

rwy7 commented 2 years ago

Reading the generated hook code line-by-line, and evaluating each line individually, doesn't work if a value has linebreaks inside it.

Tested locally with fish version 3.3.1.

CodingAnarchy commented 1 year ago

Ran into this problem as well, and I verified this fix does work.