Re: shell scripting advise: Don't use backslashes inside backtick quotes

2005-08-04 Thread Roland Illig
Oswald Buddenhagen wrote: On Thu, Aug 04, 2005 at 07:31:42AM +0200, Oswald Buddenhagen wrote: On Thu, Aug 04, 2005 at 01:19:50AM +0200, Roland Illig wrote: quote() { _sedexpr=s,',''',g _quotestr=`echo x$1 | sed -e '1s,^x,,' -e ${_sedexpr}` echo '${_quotestr}' } So

Re: shell scripting advise: Don't use backslashes inside backtick quotes

2005-08-04 Thread Oswald Buddenhagen
On Thu, Aug 04, 2005 at 12:53:17PM +0200, Roland Illig wrote: really old shells will explode on your current version, too, but we really needn't to consider those. Why? Because of possible backslashes? they do some interpretation of the expanded variables. iirc, backticks were a problem, so