As per code it is getting matched. not sure why it assigning to cols=0.
Any inputs please.
Input : passed is
shell.sh c tablename.
if [$1=c]; then
cols=1
table=$2
else
cols=0
table=$1
fi
Output:
[interactive mode output:
+ [c=c]
dcs.sh[3]: [c=c]: not found
+ cols=0
+ table=c