in reply to Re: system calls and shell aliases
in thread system calls and shell aliases
For instance, matlab is an alias for me defined in ~/.profile. Try to check if matlab exist as a command from perl:perl -e 'system("source ~/.profile; source ~/.bashrc; bash --login -c +l");'
Best, Hatef$perl -e 'system("command -v matlab")' $perl -e 'system("source ~/.profile;command -v matlab")' alias matlab='/Applications/MATLAB_R2015a.app/bin/matlab'
|
|---|