/bin/bash printf does not work with other LANG than C
问题 I have a really weird problem with /bin/bash and a script that uses printf to format a string. My script looks like this rt=$(printf "%.3f" 13.234324245) with the difference, that i compute the number 13.23... above. When i use /usr/bin/zsh that works great! Even /bin/sh can do it (but it cant do the if stuff...) The biggest problem ist that /bin/bash seems to does not understand printf or does have another formating way when i dont use LANG=C . My LANG Variable is set to de_AT.UTF-8 and then