Closed gquintard closed 2 months ago
I toyed a bit with it, and it looks like that alpine
's getopt
wants all the switched before the filenames. So this works:
varnishtest -D x= foo.vtc
I'll leave that around just in case somebody wants to look at it, but feel free to close.
That's how getopt()
normally works, have you tried an older build on the same alpine version? It probably got stricter on the alpine side.
FreeBSD also wants flags before filenames.
WontFix
Expected Behavior
/ # varnishtest foo.vtc -D x=1
should start the test, setting thex
macro to 1Current Behavior
Possible Solution
No response
Steps to Reproduce (for bugs)
docker run -it alpine sh -c "apk add varnish; echo varnishtest > foo.vtc; varnishtest foo.vtc -D x=1"
Context
I was packaging so vmods and stumble onto that one.
Varnish Cache version
varnishd (varnish-7.5.0 revision eef25264e5ca5f96a77129308edb83ccf84cb1b1)
Operating system
alpine:3
Source of binary packages used (if any)
No response