This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig unit changes for #16786.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 25 May 2002 18:51:49 +0000 (18:51 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 25 May 2002 18:51:49 +0000 (18:51 +0000)
p4raw-id: //depot/metaconfig@16787

U/modified/Getfile.U
U/modified/pager.U

index b8c8ffa..1b1244a 100644 (file)
@@ -111,7 +111,9 @@ esac
 ?X: Begin by stripping out any (...) grouping.
 case "$fn" in
 *\(*)
-       expr $fn : '.*(\(.*\)).*' | $tr ',' $trnl >getfile.ok
+       : getfile will accept an answer from the comma-separated list
+       : enclosed in parentheses even if it does not meet other criteria.
+       expr "$fn" : '.*(\(.*\)).*' | $tr ',' $trnl >getfile.ok
        fn=`echo $fn | sed 's/(.*)//'`
        ;;
 esac
index 73bcab5..49eed80 100644 (file)
@@ -25,6 +25,7 @@
 ?S:    Usual values are (the full pathnames of) more, less, pg, or cat.
 ?S:.
 : locate the preferred pager for this system
+fn=f/
 case "$pager" in
 '')
        dflt=''
@@ -44,10 +45,14 @@ case "$pager" in
        '') dflt=/usr/ucb/more;;
        esac
        ;;
-*) dflt="$pager";;
+*)     dflt="$pager"
+       : Instruct ./getfile to trust the hinted or previous pager value,
+       : even if it does not begin with a slash.  For example, on os2,
+       : pager might be cmd /c more.  See comments in UU/getfile.
+       fn="f/($pager)"
+       ;;
 esac
 echo " "
-fn=f/
 rp='What pager is used on your system?'
 . ./getfile
 pager="$ans"