In bash is if [ -z

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

瀏覽:956
日期:2025-12-13
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 ......看更多