I have just started learning unix and came across very basic doubt in command line arguments.
Suppose if in my script i do:
echo $@ #Now this prints all the command line arguments args=$@ #Args array will take the command line argument array from $@ echo $args
Here i have doubt in last statement.
echo arrayname as it should print only first index element but why is it showing the complete array?
If i take a normal array in unix and say array name is ARR,now if i use echo ARR,it will show me first element and not all elements.So why the behaviour is different with args above?