130 |
set -x |
set -x |
131 |
;; |
;; |
132 |
|
|
133 |
--fast) set -- --force --first ${1+"$@"} ;; |
--fast) set dummy --force --first ${1+"$@"}; shift ;; |
134 |
|
|
135 |
-f|--force) opt_update=false; PAGER=cat ;; |
-f|--force) opt_update=false; PAGER=cat ;; |
136 |
|
|
200 |
fi |
fi |
201 |
# The funny quoting allows keeping one option per |
# The funny quoting allows keeping one option per |
202 |
# line in $rc_file: |
# line in $rc_file: |
203 |
eval set -- `echo \`cat $rc_file\` \\\${1+\"\\\$@\"}` |
eval set dummy `echo \`cat $rc_file\` \\\${1+\"\\\$@\"}` |
204 |
|
shift |
205 |
;; |
;; |
206 |
|
|
207 |
-s|--sendmail) test $# = 0 && func_missing_arg $opt && break |
-s|--sendmail) test $# = 0 && func_missing_arg $opt && break |
247 |
--*=*) |
--*=*) |
248 |
arg=`echo "$opt" | $SED "$my_sed_long_arg"` |
arg=`echo "$opt" | $SED "$my_sed_long_arg"` |
249 |
opt=`echo "$opt" | $SED "$my_sed_long_opt"` |
opt=`echo "$opt" | $SED "$my_sed_long_opt"` |
250 |
set -- "$opt" "$arg" ${1+"$@"} |
set dummy "$opt" "$arg" ${1+"$@"} |
251 |
|
shift |
252 |
;; |
;; |
253 |
|
|
254 |
# Separate optargs to short options: |
# Separate optargs to short options: |
255 |
-m*|-F*|-C*|-S*|-s*|-z*) |
-m*|-F*|-C*|-S*|-s*|-z*) |
256 |
arg=`echo "$opt" |$SED "$my_sed_single_rest"` |
arg=`echo "$opt" |$SED "$my_sed_single_rest"` |
257 |
opt=`echo "$opt" |$SED "$my_sed_single_opt"` |
opt=`echo "$opt" |$SED "$my_sed_single_opt"` |
258 |
set -- "$opt" "$arg" ${1+"$@"} |
set dummy "$opt" "$arg" ${1+"$@"} |
259 |
|
shift |
260 |
;; |
;; |
261 |
|
|
262 |
# Separate non-argument short options: |
# Separate non-argument short options: |
263 |
-f*|-1*|-n*|-q*) |
-f*|-1*|-n*|-q*) |
264 |
rest=`echo "$opt" |$SED "$my_sed_single_rest"` |
rest=`echo "$opt" |$SED "$my_sed_single_rest"` |
265 |
opt=`echo "$opt" |$SED "$my_sed_single_opt"` |
opt=`echo "$opt" |$SED "$my_sed_single_opt"` |
266 |
set -- "$opt" "-$rest" ${1+"$@"} |
set dummy "$opt" "-$rest" ${1+"$@"} |
267 |
|
shift |
268 |
;; |
;; |
269 |
|
|
270 |
-\?|-h) func_usage ;; |
-\?|-h) func_usage ;; |
272 |
--version) func_version ;; |
--version) func_version ;; |
273 |
--) break ;; |
--) break ;; |
274 |
-*) func_fatal_help "unrecognized option \`$opt'" ;; |
-*) func_fatal_help "unrecognized option \`$opt'" ;; |
275 |
*) set -- "$opt" ${1+"$@"}; break ;; |
*) set dummy "$opt" ${1+"$@"}; shift; break ;; |
276 |
esac |
esac |
277 |
done |
done |
278 |
|
|