[Wien] Syntax error: Bad fd number
Tomohiko Tasaka
tasaka at affinity-science.com
Wed May 18 06:10:44 CEST 2022
Hello,
Ubuntu's /bin/sh is linked to /bin/dash.
Since dash cannot handle ">&" in SRC_Globals/W2kinit.F,
the following error is output when using ELPA.
/bin/sh: 1: Syntax error: Bad fd number
So, could you fix it in the future version or patches?
The shell used to invoke the command depends on the system and environment,
but the following changes are possible.
$ diff W2kinit.F.orig W2kinit.F
401c401
< istat=system('ls /proc/cpuinfo >& /dev/null')
---
> istat=system('ls /proc/cpuinfo > /dev/null 2> /dev/null')
411c411
< istat=system('grep -i avx512 /proc/cpuinfo >& /dev/null')
---
> istat=system('grep -i avx512 /proc/cpuinfo > /dev/null 2> /dev/null')
413c413
< istat=system('grep -i avx2 /proc/cpuinfo >& /dev/null')
---
> istat=system('grep -i avx2 /proc/cpuinfo > /dev/null 2> /dev/null')
415c415
< istat=system('grep -i avx /proc/cpuinfo >& /dev/null')
---
> istat=system('grep -i avx /proc/cpuinfo > /dev/null 2> /dev/null')
417c417
< istat=system('grep -i sse /proc/cpuinfo >& /dev/null')
---
> istat=system('grep -i sse /proc/cpuinfo > /dev/null 2> /dev/null')
$
Best regards,
Tomohiko
More information about the Wien
mailing list