POSIX sh suppress error of builtin set -u option

前端 未结 0 584
孤独总比滥情好
孤独总比滥情好 2020-12-10 05:08

The following script:

#!/bin/sh

set -u;

printf "$notset\\n";

printf "I am not displayed\\n";

gives the expected error:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题