On 11/01/2012 11:20 PM, David Haller wrote:
On Thu, 01 Nov 2012, Bernhard Voelker wrote:
[...] And in case of complicated wildcard expressions for file globbing, there's always the possibility to call `echo CMD ...` first.
That's a really BAD choice of quoting! By `` you execute the commmand you echo.
`echo ls -l t.t*` -rw-r--r-- 1 dh dh 376 Jan 11 2012 t.tex -rw-r--r-- 1 dh dh 221 Feb 20 2012 t.txt -rw-r--r-- 1 dh dh 552 Jul 3 2008 t.txt~
Hi David, admitted, but as long as such a command is being embedded in a sentence, I don't see much difference to other quoting characters: neither "echo CMD ..." nor 'echo CMD ...' will do what you want if you copy/paste the command including the quoting characters into a terminal. Therefore, I thought that the backticks is just a way to separate the command from the normal text flow, and since the backticks are known for executing the command inside, I thought it would remind the reader that the string in between is something which can be executed (in opposite to e.g. a file name). Finally, I have choosen a general example with 'CMD' as command, so noone would ever want to execute that (well, maybe on Cygwin ;-). The only correct quoting would have been to show a complete example. What quoting style do you propose? Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org