[Abcde-users] Correction - Capitalize Letter for Default Option

Roger rogerx.oss at gmail.com
Wed May 1 21:09:28 BST 2013


Can't seem to make sense out of the scripting at approximately line 2700.

        echo -n "Edit selected CDDB data? [y/n] (" >&2
        if [ "$INTERACTIVE" = "y" ]; then
                if [ "$UNKNOWNDISK" = "y" ]; then
                        echo -n "y): " >&2
                        read EDITCDDB
                        [ "$EDITCDDB" != "n" ] && EDITCDDB=y
                else   
                        echo -n "n): " >&2
                        read EDITCDDB
                fi
        else   
                echo "n): n" >&2
                EDITCDDB=n
        fi

Basically the default option should be capitalized (ie. Y/n or y/N), as all other options printed by 
abcde signify the default option as capitalized.

But this seems to probe something prior to suggesting a default option.  Ugly and uncommented. ;-)

-- 
Roger
http://rogerx.freeshell.org/



More information about the Abcde-users mailing list