0
我們的項目中有一個bash腳本(https://github.com/prsolucoes/gonotin - run.sh),需要使用printf來執行浮點執行時間。如何使BSD printf命令忽略語言環境
問題是在osx上使用locale = pt_br的printf,因爲它使用「,」而不是「。」。和printf命令不知道en_us數字,如「123.45」,只有「123,45」。
我的問題是關於在printf上忽略語言環境或在printf命令上傳遞自定義語言環境。
任何人都可以幫助我嗎?
謝謝。
您是否檢查[this](http://unix.stackexchange.com/questions/104096/locale-dependent-bash-script-how-to-properly-ensure-locale)? –
'LANG = pt_br printf ...'? – Cyrus