Comparison problem with case modification expansion in bash-4.3

2015-11-03 Thread Corentin Peuvrel
quot;${foo,,}"* ]] && echo ok ok If the variable is not empty, it also works normally : # foo="A" ; [[ bar == *"${foo,,}"* ]] && echo ok ok I hope it's not already known, but I couldn't find anything on the net. Thank you, Corentin Peuvrel

Function name conflict with alias in bash-4.3

2015-08-25 Thread Corentin Peuvrel
} But you cannot if you don't : $ foobar() {:;} -bash: syntax error near unexpected token `(' It's not really critical once you know it, but it's a little bit odd ! Thank you, Corentin Peuvrel

Array name expansion in bash-4.3

2014-07-22 Thread Corentin Peuvrel
prefix/suffix pattern, ...) with an expansion of an array name which contain a non zero index, it will still use the index 0. Thank you, Corentin Peuvrel