SPECS: bash-completion.spec - no need to check for

Elan Ruusamäe glen at delfi.ee
Thu Jan 13 15:13:38 CET 2005


On Thursday 13 January 2005 15:51, Andrzej Krzysztofowicz wrote:
> glen wrote:
> > Index: SPECS/bash-completion.spec
> > diff -u SPECS/bash-completion.spec:1.111 SPECS/bash-completion.spec:1.112
> > --- SPECS/bash-completion.spec:1.111 Thu Jan 13 13:00:37 2005
> > +++ SPECS/bash-completion.spec Thu Jan 13 13:07:13 2005
> > @@ -62,7 +62,7 @@
> >  # check for correct version of bash
> >  bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
> >  if [ "$bmajor" -eq 2 -a "$bminor" '>' 04 ] || [ "$bmajor" -gt 2 ]; then
> > - if [ "$PS1" ] && [ -f %{_sysconfdir}/bash_completion ]; then #
> > interactive shell + if [ "$PS1" ]; then # interactive shell
> >    # Source completion code
> >    . %{_sysconfdir}/bash_completion
> >   fi
>
> One doubt: shouldn't the "$" be \-quoted here?
> (To avoid substitution while parsing specfile.)
nope, it's protected by single quotes: <<'EOF'


-- 
glen




More information about the pld-devel-en mailing list