How to enable brew in ‘do shell script’ ?
In particular, after Catalina zsh upgrade, don’t want to use bash & perlbrew command I used in past:
do shell script “~/perl5/perlbrew/bin/perlbrew exec --with perl-5.28.1 script.pl”
Please don’t tell me what to do as a workaround, just answer the question
Any application launched from the Finder gets the same default environment: a working directory of / and the environment variables HOME, LANG, PATH, SHELL, and USER. Most applications do not change their environment, but relying on this is a maintenance risk.