dajhorn/pkg-zfs — comment on commit d06854fd416cff5aed75edc482a6f3899a70255d
File:  line 0
By stephane-chazelas:

"${x#'#'}" is not portable (because of the quotes), doesn't work in dash or . Use case instead:

```sh
case "$CONFIG_ZPOOL" in
('#'*) continue
esac
```

What about

```sh
awk -v i="$ID_PATH" '!/^#/ && $2 == i {print $1; exit}' < "$CONFIG"
```