Shell sh: Illegal variable name


env ASSUME_ALWAYS_YES=YES pkg install -y -A $(make -C /usr/ports/www/apache24 missing)


gives me "Illegal variable name".
Any idea what is wrong?
 
Thank you guys 👍

So the problem was that (t)csh was active when I believed that sh were active.
Thus, replacing that line with

cd /usr/ports/www/apache24
env ASSUME_ALWAYS_YES=YES make install-missing-packages

seemed to me the safest solution. Not elegant but shell-agnostic. :)
 
Back
Top