Package: dash
Version: 0.5.5.1-7

Using the "local" command to do variable assignment should not do word
splitting.  The following script shows how a Dash function incorrectly
handles an argument with a space in it.


#! /bin/dash

show_buggy_word_splitting() {
    local d=$1
    if [ "$d" = "two words" ]; then
        echo Success
        return 0
    else
        echo Failure
        return 1
    fi
}

show_buggy_word_splitting "two words"



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to