Open mribbons opened 9 years ago
@mribbons, thanks for the bug report. (I visit this repo infrequently, and just noticed this issue ticket.)
This is probably an implementation quirk. I will check it against GNU Awk 4.1 and Busysbox 1.22 later, which are my deployment targets. Which version of awk is glitching for you?
The -F$'\t'
is a bashism, which makes it inappropriate for this script. If a literal tab character is a fix, then the general solution will look like -F$(printf '\t')
.
@dajhorn hi, I hope this is sufficient. GNU Awk 4.0.1 Linux hostname 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
@mribbons, I have the same version on my Ubuntu computer, but I'm not able to reproduce the glitch. I will revisit this issue ticket later.
https://github.com/zfsonlinux/zfs-auto-snapshot/blob/master/src/zfs-auto-snapshot.sh#L392
This line doesn't seem to work, I always get "0 created"
However if I change it to awk -F$'\t' .... it works.
Can I submit a PR or is my shell knowledge far too limited?