[BACK]Return to myread CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari / config

File: [local] / OpenXM_contrib / pari / config / Attic / myread (download)

Revision 1.1.1.1 (vendor branch), Sun Jan 9 17:35:29 2000 UTC (24 years, 4 months ago) by maekawa
Branch: PARI_GP
CVS Tags: maekawa-ipv6, VERSION_2_0_17_BETA, RELEASE_20000124, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2
Changes since 1.1: +0 -0 lines

Import PARI/GP 2.0.17 beta.

if test "$fastread" = yes; then
  echo "[$dflt]"
  ans=$dflt
else
  if test -n "$dflt"; then echo $n "[$dflt] $c"; fi
  while :; do
    read ans
    case "$ans" in
    '')
      ans="$dflt"
      break
      ;;
    !*)
      ans=`echo "$ans"|cut -c2-`
      break
      ;;
    *)
      if test -z "$rep"; then break; fi
      for i in $rep; do
        if test "$i" = "$ans"; then break 2; fi
      done
      echo $n "***  Please try something else : [$rep] $c"
      ;;
    esac
  done
fi