Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: >> + echo 's/\("'$name'":\) [0-9]\+/\1 <number>/' >>filter.sed > > This does not do what you think it does, in Ubuntu Xenial and on macOS: > > https://dev.azure.com/gitgitgadget/git/_build/results?buildId=11408&view=ms.vss-test-web.build-test-results-tab&runId=27736&paneView=debug&resultId=105613 > > The `\1` is expanded to the ASCII character 001. Therefore your test cases > fail on almost all platforms. > > Funnily enough, they pass on Windows... bash, dash and /bin/echo behave differently given $ echo 'foo \1 bar' some 'echo' suffer from the "\<n>" interpolation. Some don't. I think your spelled-out version downthread (except for stepping out of BRE which would break your sed script, as you realized) would be a much readable alternative. Thanks.