From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id FAA15927 for ; Mon, 6 Nov 1995 05:45:35 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA01297; Sun, 5 Nov 1995 13:23:28 -0500 Resent-Date: Sun, 5 Nov 1995 10:26:37 -0800 Old-Return-Path: From: schaefer@z-code.ncd.com (Barton E. Schaefer) Message-Id: <951105102637.ZM28524@zyrcon.z-code.com> Date: Sun, 5 Nov 1995 10:26:37 -0800 In-Reply-To: Thorsten Meinecke "Expansion/quoting quirks" (Nov 5, 2:00pm) References: Reply-To: schaefer@z-code.ncd.com X-Face: czU|*h"p8AX?4.I.yU.^s%TIMx|"-s,*'|#H^|e,QjE&!jL%<]:-.U/;khS%3a2BC5_d#)( mz=$$G0u9P&*N8cA~b[URf;lgKRif@#qEf[ltie#Gg0%6$b`e`k.Cgw:\qJx\\a7c(K7^3;gXW:e1@ J, zsh-workers@math.gatech.edu Subject: Re: Expansion/quoting quirks Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-Id: <"0LgDJ2.0.BK.V4Gdm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/535 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Nov 5, 2:00pm, Thorsten Meinecke wrote: } Subject: Expansion/quoting quirks } } its output will be compared to the expected output, which is on the lines } beginning with `#%'. } } } # Backslash ignored between single quotes (fixed in hzoli) } #% \$x } echo $(echo '\$x') This one seems really strange to me. Why is $(foo) different from `foo` in ksh? I think I prefer zsh's behavior, even if it isn't compatible. $ echo $(echo '\$x') \$x $ echo `echo '\$x'` $x $ Look, ksh isn't even consistent about it! Why should that $ cause a magically different behavior? $ echo $(echo '\x') \x $ echo `echo '\x'` \x $ (This is ksh88, I believe, in case that matters.) -- Bart Schaefer Vice President, Technology, Z-Code Software schaefer@z-code.com Division of NCD Software Corporation http://www.well.com/www/barts