[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HELP: strange behaviour of shell (bash)



On Mo, 23 Apr 2012, Norbert Preining wrote:
>     set -- $line
>     name=""
>     lhm=""
>     rhm=""
>     synonyms=""
>     f=""
>     while [ ! "$1" = "" ] ; do
>         case "$1" in
>             name=*) name="${1#name=}" ;;
>             lefthyphenmin=*) lhm="${1#lefthyphenmin=}" ;;
>             righthyphenmin=*) rhm="${1#righthyphenmin=}" ;;
>             patterns=*) patterns="${1#patterns=}" ;;
>             synonyms=*) synonyms="${1#synonyms=}" ;;
>             exceptions=*) exceptions="${1#exceptions=}" ;;
>             file=*) f="${1#file=}" ;;
>             *) echo "Unknown AddHypen directive $1 in line: ==$line==!" >&2 ; return ;;
>         esac
>         shift
>     done

And as I thought ... adding a few debug statements shows that 
at some point IFS changes from correct to ",\n" ... but who
is doing that???

It is me .... ;-)

Fixing update-fmtlang ...

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
CORRIEMOILLIE (n.)
The dreadful sinking sensation in a long passageway encounter when
both protagonists immediately realise they have plumped for the
corriedoo (q.v.) much too early as they are still a good thirty yards
apart. They were embarrassed by the pretence of corriecravie (q.v.)
and decided to make use of the corriedoo because they felt silly. This
was a mistake as corrievorrie (q.v.) will make them seem far sillier.
			--- Douglas Adams, The Meaning of Liff


Reply to: