aboutsummaryrefslogtreecommitdiff
path: root/samples/inputmenu2
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-10-21 18:18:09 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-10-21 18:18:09 +0000
commit5f120a342bce9d4f0afede0510bdd9adc5bcc061 (patch)
tree7533a68fe403654b5f1626734c2336dc7128d3bb /samples/inputmenu2
parent72147526307e3b98341f67058a9e8da8256f08eb (diff)
Notes
Diffstat (limited to 'samples/inputmenu2')
-rwxr-xr-xsamples/inputmenu24
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/inputmenu2 b/samples/inputmenu2
index f560aba3d211..ecef6742cbaa 100755
--- a/samples/inputmenu2
+++ b/samples/inputmenu2
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: inputmenu2,v 1.8 2010/01/13 10:32:04 tom Exp $
+# $Id: inputmenu2,v 1.9 2012/07/01 01:00:34 tom Exp $
#
# "inputmenu1" with defaultitem, help-button.
@@ -66,7 +66,7 @@ exec 3>&-
;;
$DIALOG_EXTRA)
tag=`echo "$value" |sed -e 's/^RENAMED //' -e 's/:.*/:/'`
- item=`echo "$value" |sed -e 's/^.*:[ ]*//' -e 's/[ ]*$//'`
+ item=`echo "$value" |sed -e 's/^[^:]*:[ ]*//' -e 's/[ ]*$//'`
case "$tag" in
Username:)