```
params=$(echo "$params_untrimmed" | sed 's/^[ \t,]*//')
```

Can't rewrite this expression to string substitution form (`${}`).

Can someone do that?

@jonn
shopt -s extglob
params=${params_untrimmed##*([,[:space:]])}

Follow

@mushidango I keep forgetting what do these `shopts` do...

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.