Re: echo "\\1"?

2017-07-27 Thread Eric Blake
On 07/27/2017 07:23 AM, Bosco wrote: > According the man pages, Which man pages? Echo is one of those programs that varies widely, and you are MUCH better off using printf(1) instead of echo(1) if you are trying to get newline suppression, trying to print something that might begin with -, or

Re: echo "\\1"?

2017-07-27 Thread Bosco
On 27 July 2017 at 12:54, Eric Blake wrote: > Which man pages? Echo is one of those programs that varies widely, and > you are MUCH better off using printf(1) instead of echo(1) if you are > trying to get newline suppression, trying to print something that might > begin with

Re: echo "\\1"?

2017-07-27 Thread Bosco
That script of zziplib isn't mine, I only had to compile it once because it was necessary for compile other program (TeX Live). I'm not talking about POSIX, and I don't mind what it said. I'm talking about the man page of dash, that said: > echo [-n] args... >Print the arguments on

Re: echo "\\1"?

2017-07-27 Thread Eric Blake
On 07/27/2017 08:13 AM, Bosco wrote: > On 27 July 2017 at 12:54, Eric Blake wrote: >> Which man pages? Echo is one of those programs that varies widely, and >> you are MUCH better off using printf(1) instead of echo(1) if you are >> trying to get newline suppression, trying to

Re: echo "\\1"?

2017-07-27 Thread Bosco
I don't have any problem, I only show you one case where I had to fix an script in order to work a compilation in dash. I'm using dash because of simplicity, unfortunately I don't understand how things work. I think the problem is of dash, I only want to report that dash fails at parse scape

Re: echo "\\1"?

2017-07-27 Thread Eric Blake
On 07/27/2017 10:10 AM, Bosco wrote: > That script of zziplib isn't mine, I only had to compile it once > because it was necessary for compile other program (TeX Live). > > I'm not talking about POSIX, and I don't mind what it said. I'm > talking about the man page of dash, that said: > > when

Re: echo "\\1"?

2017-07-27 Thread Bosco
Ahh, now I understood. In command echo first dash interprets the command line (and the arguments), then internally echo interprets the arguments. But echo is part of dash, so dash interprets twice the same argument. Sorry I didn't know that. Thank you for your help and your time. Bosco. --

Re: echo "\\1"?

2017-07-27 Thread Harald van Dijk
On 27/07/2017 16:24, Eric Blake wrote: On 07/27/2017 08:13 AM, Bosco wrote: On 27 July 2017 at 12:54, Eric Blake wrote: Which man pages? Echo is one of those programs that varies widely, and you are MUCH better off using printf(1) instead of echo(1) if you are trying to