Changeset 3466


Ignore:
Timestamp:
Feb 13, 2015 1:52:40 AM (5 years ago)
Author:
stefan
Message:

quote pattern to avoid that it is expanded by shell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.8/coin-functions

    r3432 r3466  
    390390  bstb_filter=
    391391  for bstb_ver in $bstb_rawls ; do
    392     if  expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then
     392    if  expr "$bstb_ver" : "$bstb_verPat" >/dev/null 2>&1 ; then
    393393      bstb_filter="$bstb_filter $bstb_ver"
    394394    fi
     
    411411        # echo "Pattern: $bstb_projPat"
    412412        for bstb_ver in $bstb_filter ; do
    413           if  expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then
     413          if  expr "$bstb_ver" : "$bstb_verPat" >/dev/null 2>&1 ; then
    414414            # echo "  url: $bstb_listURL/$bstb_ver"
    415415            bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`"
    416416            # echo "  result: $bstb_svnls2"
    417             if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then
     417            if expr "$bstb_svnls2" : "$bstb_projPat" >/dev/null 2>&1 ; then
    418418              bstb_best=$bstb_ver
    419419              # echo "  best: $bstb_best"
     
    489489  bstb_filter=
    490490  for bstb_ver in $bstb_rawls ; do
    491     if  expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then
     491    if  expr "$bstb_ver" : "$bstb_verPat" >/dev/null 2>&1 ; then
    492492      bstb_filter="$bstb_filter $bstb_ver"
    493493    fi
     
    510510        # echo "Pattern: $bstb_projPat"
    511511        for bstb_ver in $bstb_filter ; do
    512           if  expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then
     512          if  expr "$bstb_ver" : "$bstb_verPat" >/dev/null 2>&1 ; then
    513513            # echo "  url: $bstb_listURL/$bstb_ver"
    514514            bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`"
    515515            # echo "  result: $bstb_svnls2"
    516             if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then
     516            if expr "$bstb_svnls2" : "$bstb_projPat" >/dev/null 2>&1 ; then
    517517              bstb_best=$bstb_ver
    518518              # echo "  best: $bstb_best"
     
    581581    cltc_majfilter=
    582582    for cltc_ver in $cltc_rawls ; do
    583       if  expr "$cltc_ver" : $cltc_verPat >/dev/null 2>&1 ; then
     583      if  expr "$cltc_ver" : "$cltc_verPat" >/dev/null 2>&1 ; then
    584584        cltc_majfilter="$cltc_majfilter $cltc_ver"
    585585      fi
     
    653653    cltc_stdfilter=
    654654    for cltc_ver in $cltc_rawls ; do
    655       if  expr "$cltc_ver" : $cltc_verPat >/dev/null 2>&1 ; then
     655      if  expr "$cltc_ver" : "$cltc_verPat" >/dev/null 2>&1 ; then
    656656        cltc_stdfilter="$cltc_stdfilter $cltc_ver"
    657657      fi
Note: See TracChangeset for help on using the changeset viewer.