YAD field negative numbers
I'm sure I'm missing something here, BASH is new to me!
I am trying to create a script using dialog entry (YAD).
A few of the form fields require a number which has a negative value as a default.
I can set a range from -5 to +10 but I cannot seem to set the initial value to a negative value.
If I set VALUE = 0 or another positive number things work OK.
If I set VALUE=0-2 then the range works OK but the initial value starts as 0 and not -2
I don't seem to be able to set the initial (Defailt) value to a negative number.
What am I doing wrong?
#!/bin/sh
VALUE=-2 #-2 messes up range in yad. 0-2 (zero minus 2) gives correct range but initial value becomes 0 not -2.
MIN=-5
MAX=10
yad --title="Negative number test"\
--form --field=
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu yad Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Colin Watson
- Solved:
- Last query:
- Last reply: