From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20443 invoked by alias); 3 Dec 2014 23:41:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19494 Received: (qmail 9272 invoked from network); 3 Dec 2014 23:41:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=tDZUtGgdvB6RbretPev/jw==:117 a=tDZUtGgdvB6RbretPev/jw==:17 a=G8GL833Es-AA:10 a=IkcTkHD0fZMA:10 a=C38CW-wznAcOCWqWwPkA:9 a=QEXdDO2ut3YA:10 Message-id: <547F9F8A.60706@eastlink.ca> Date: Wed, 03 Dec 2014 15:40:58 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: triviality with prompts References: <547E568C.6070607@eastlink.ca> <141202190200.ZM31930@torch.brasslantern.com> <547E9158.6050103@eastlink.ca> <9CD0DDE8-21AB-4EA3-A69F-9B338ECC83F1@macports.org> <547F385B.3070405@eastlink.ca> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 12/03/2014 01:22 PM, Bart Schaefer wrote: > (The special meaning of backslash to certain commands like print and > echo is entirely separate from quoting, though often similar in effect.) Yeah, that's a gotcha that I now get, but it sure caused me some grief. I wish there was some string modifier that distinguished between backslash as quote, and backslash as escape. Maybe that's not doable, but I run into situations where I need to protect a ' \n ' but don't care about stripping the backslash off what is a 'real' quoted character. I now know that the escape situation is, technically, not the shell's business, OTOH shell builtins might perhaps not be treated like total strangers when it comes to escapes since they are obviously in the family.