v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
654 stars 58 forks source link

Negative field values do not seem to work #176

Closed m4r35n357 closed 2 years ago

m4r35n357 commented 2 years ago

I saw another issue that was fixed using "--", but I can't see it helping here.

parameters=$(yad --title="Lorenz Attractor" --form --separator=" " \
    --field="Display Precision" "6" \
    --field="Order" "8" \
    --field="Step Size" ".01" \
    --field="Steps" "10000" \
    --field="x0" "-15.8" \
    --field="y0" "-17.48" \
    --field="z0" "35.64" \
    --field="Sigma" "10" \
    --field="Rho" "28" \
    --field="Beta numerator" "8" \
    --field="Beta denominator" "3")
m4r35n357 commented 2 years ago

OK fixed with:

parameters=$(yad --title="Lorenz Attractor" --form --separator=" " \
    --field="Display Precision" \
    --field="Order" \
    --field="Step Size" \
    --field="Steps" \
    --field="x0" \
    --field="y0" \
    --field="z0" \
    --field="Sigma" \
    --field="Rho" \
    --field="Beta numerator" \
    --field="Beta denominator" \
    -- "6" "8" ".01" "10000" "-15.8" "-18.48" "35.64" "10" "28" "8" "3")

Not as readable, but it works.