Commit graph

11 commits

Author SHA1 Message Date
Maniack Crudelis
652edc204c
Syntax fix 2019-03-16 16:53:07 +01:00
Maniack Crudelis
ad748a75f6
eval is useful and working before being evil... 2019-03-16 16:15:54 +01:00
Maniack Crudelis
23d7a0005d
Escape $ in getopts 2019-03-16 16:05:32 +01:00
Maniack Crudelis
573fab4268
[fix] Escape double quote before eval in getopts
Work in progress...
Need to be tested.
2019-02-10 21:23:56 +01:00
Maniack Crudelis
540291a7e0 Ignore useless parameters in legacy mode 2019-01-04 19:26:54 +01:00
Maniack Crudelis
50f3291ea7 Fix getopts with blank argument's value
There's no reason in that loop where we're looking for values of an option to have a blank cell in the array of arguments. Unless for an option with a missing value.
In that case, it's better to ignore this condition and store a blank value in the variable.
Otherwise, in case of missing value for an option, with this condition, we enter in an infinite loop, because the shift will stay at 0.
2019-01-04 18:44:40 +01:00
Maniack Crudelis
976f160afb Fix getopts and its legacy mode 2019-01-04 17:11:49 +01:00
Maniack Crudelis
4bac17a162
Merge branch 'stretch-unstable' into use_getops 2018-12-29 19:07:25 +01:00
Maniack Crudelis
2094557e1e
Use getopts helpers in getopts itself 2018-12-29 18:51:49 +01:00
Maniack Crudelis
e918836ab0 Fix multiple value for getopts (#592) 2018-12-01 16:21:31 +01:00
Maniack Crudelis
45ad53eb43
Add the internal helper ynh_handle_getopts_args 2018-08-27 21:44:22 +02:00