1

Parsing values

view story
linux-howto

http://www.unix.com – can anybody tell me why this code does not work? Code: cat x1.ksh   #!/bin/ksh set -x echo "|$#|" while [ $# -gt 0 ] do     case $1 in       --+([kK])           shift           K=$1           ;;       *)         echo "Here I am"         shift         ;;   esac done ./x1.ksh -k 5+ echo '|2|' |2| ./x1.ksh: line 5: syntax error at line 10: `newline' unexpected Thanks to all who (HowTos)