Why is bash script argument considered as a command?

前端 未结 0 1283
说谎
说谎 2021-01-18 16:13

I have a simple bash script:

#!/bin/bash

VAR=$1

if [$VAR == \'\']
then
        echo \'VAR is empty\'
        exit 0
fi

echo \'You typed \'$VAR
相关标签:
回答
  • 消灭零回复
提交回复
热议问题