Re: [PATCH] test-lib.sh: use printf instead of echo
- From
- Uwe Storbeck <uwe@ibr.ch>
- Date
- Mar 17, 2014, 18:38 UTC
- Message-ID
- <20140317183807.GB1971@ibr.ch>
- In-Reply-To
- <53241688.2050604@kdbg.org>
On Mar 15, Johannes Sixt wrote:
Show 6 quoted lines
> > - echo "$@" | sed -e 's/^/# /' > > + printf '%s\n' "$@" | sed -e 's/^/# /' > > This should be > > printf '%s\n' "$*" | sed -e 's/^/# /'
Right, that should be $* to always be one argument for the format pattern.
Thanks
Uwe