Follow

```
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:]])}

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.