Re: « echo '"\$z' » — difference s between dash and bash in POSIX mode irrespective of xpg_echo
Herbert Xu <[email protected]> Mon, 21 Oct 2024 12:34:24 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
Дилян Палаузов <[email protected]> wrote: > > I download https://ftp.gnu.org/gnu/gdb/gdb-15.2.tar.xz and run there ./configure . configure has on line 19728 > > echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && The issue is that echo(1) with a backslash character is not portable. The portable solution is printf(1). If you cannot use printf(1), perhaps use a here-document instead: cat <<- EOF && cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && EOF Cheers, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt