nios2_command_shell fails
Running old Quartus Prime 18.0 on Windows 10
On some Windows 10 machines, I observe the following:
From the Nios II Eclipse environment, launching Nios II Command Shell fails. Also fails when launching from Dos window. The error messages "c:/intellFPGA_lite/18.0/nios2eds/nios2_command_shell.sh: line 41: /bin/dirname: Bad address
While on other Windows 10 machines, there is no problem
I determined that one particular line in the script C:\intelFPGA_lite\18.0\nios2eds\nios2_command_shell.sh works on one Windows 10 PC but not another.
If I split the following line into two statements, then the problem goes away.
_ACDS_ROOT=$(dirname $(dirname ${_this_nios2_command_shell_script}))
Solution:
_R1=$(dirname ${_this_nios2_command_shell_script})
_ACDS_ROOT=$(dirname $_R1)