13 lines
150 B
Bash

#!/bin/bash
function chkargs(){
echo "you give $# arguments:"
for arg in "$@"; do
echo -e "\t$arg"
done
}
chkargs "$@"
chkargs "$*"
chkargs $*