µð¹ö±ë º¸±â:
cat example #!/bin/sh TEST1=result1 TEST2=result2 if [ $TEST1 = "result2" ] then echo $TEST1 fi if [ $TEST1 = "result1" ] then echo $TEST1 fi if [ $test3 = "whosit" ] then echo fail here cos it's wrong fi
example ½ºÅ©¸³Æ®¿¡¼´Â test3 º¯¼ö°¡ Á¤ÀǵǾî ÀÖÁö ¾Ê±â ¶§¹®¿¡, ´ÙÀ½ÀÇ ¿À·ù¸¦ º¸ÀÔ´Ï´Ù.
example result1 [: argument expected
ÀÌ ½ºÅ©¸³Æ®°¡ ¾î¶»°Ô ÇØ¼ ¿À·ù°¡ ³µ´ÂÁö, È®ÀÎÇØ º¸±âÀ§ÇØ, -x ¿É¼ÇÀ» »ç¿ëÇÑ °á°ú´Â ´ÙÀ½°ú °°½À´Ï´Ù:
sh -x example TEST1=result1 TEST2=result2 + [ result1 = result2 ] + [ result1 = result1 ] + echo result1 result1 + [ = whosit ] example: [: argument expected