Hi,
i like your work to create a more modern envsubst combined with statically compiling with musl, it's a very portable and efficient solution.
I have a minor request: is it possible to implement write the output in the same file as input? (without using some other tool like sponge)
ex:
cat test.txt
test: it $TEST
export TEST=work
renvsubst --variable=TEST --input=test.txt --output=test.txt
file test.txt
test.txt: empty
if the output file is different, it works perfectly:
renvsubst --variable=TEST --input=test.txt --output=test2.txt
cat test2.txt
test: it work
Hi,
i like your work to create a more modern
envsubstcombined with statically compiling with musl, it's a very portable and efficient solution.I have a minor request: is it possible to implement write the output in the same file as input? (without using some other tool like
sponge)ex:
if the output file is different, it works perfectly: