From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11114 invoked from network); 30 Jul 2002 17:03:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Jul 2002 17:03:59 -0000 Received: (qmail 7703 invoked by alias); 30 Jul 2002 17:03:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17491 Received: (qmail 7692 invoked from network); 30 Jul 2002 17:03:48 -0000 To: zsh-workers@sunsite.dk Subject: Re: Quoting in zsh -x output In-reply-to: "Hrvoje Niksic"'s message of "Tue, 30 Jul 2002 18:26:59 +0200." Date: Tue, 30 Jul 2002 18:03:20 +0100 Message-ID: <21447.1028048600@csr.com> From: Peter Stephenson Hrvoje Niksic wrote: > I suggest modifying the zsh `-x' output to quote its arguments the way > Bash does. What do the others think? This would be nice, but it's not a trivial change. The xtrace output is done at the last minute after quoting information has been stripped. This is deliberate, in order to output exactly what is being evaluated after all substitutions, which is the information you can't get any other way. This is at odds with showing all the quotes. It's possible there's some compromise position which would show a lot of everything --- the quotes get stripped at quite a late stage. However, there's no way of doing it perfectly without a great deal of work --- consider expansions like "$@". You could try the `verbose' option, which works at the input end of the command chain. (In case anybody assumes otherwise, I have zero time to work on this myself for the foreseeable future.) -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************