In bash is if [ -z

In bash is if [ -z "$1" ] and if [ "$1" = "" ] the same? - Unix & Linux ...

瀏覽:408
日期:2026-04-19
7 Nov 2010 ... if [ "$1" = "" ]. or are they the same? I have found my self writing the second one in some scripts, but then I read here that the -z flag is does the ......看更多