kaniini / envsubst

14 stars 4 forks source link

Slash character is not considered as a separator #2

Closed Dekedro closed 2 years ago

Dekedro commented 3 years ago

Command:

$ a=/root; b=test; export a b
$ echo '$a/$b' | envsubst a b

Expected output: "/root/test" Actual output: "$a/$b"

Looks like characters strpbrk accepts should include "/": https://github.com/kaniini/envsubst/blob/3061277c9d957f970b0922282fd7ccab7cda3414/envsubst.c#L187