> On 30. Jun 2020, at 18:27, Jérôme Godbout <godbo...@amotus.ca> wrote:
>
> What the hell is sh is doing?
It's not automatically applying your .bash_profile or .bashrc to a standalone
script, as such an environment dependency would severely limit the reusability
of shell scripts.
You need to set the extglob shell option for this shell script if you want to
use this feature.
Compare:
1. bash -c 'ls !(foo)'
2. bash -O extglob -c 'ls !(foo)'
See `man bash`, specifically EXPANSION -> Pathname Expansion -> Pattern
Matching.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/3388A299-D679-4999-AA4B-D96E155FE55E%40beckweb.net.