(parsing options): Simplify sed command to delete -'s.

This commit is contained in:
Richard M. Stallman 1994-09-18 08:19:12 +00:00
parent d05c42e46d
commit c0b2f23c46

View file

@ -166,7 +166,7 @@ while [ $# != 0 ]; do
## If FOO is a boolean argument, --FOO is equivalent to ## If FOO is a boolean argument, --FOO is equivalent to
## --FOO=yes. Otherwise, the value comes from the next ## --FOO=yes. Otherwise, the value comes from the next
## argument - see below. ## argument - see below.
opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'` opt=`echo ${arg} | sed 's:^-*::'`
val="yes" val="yes"
valomitted=yes valomitted=yes
;; ;;