From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 205c4ff1 for ; Mon, 3 Jun 2019 09:27:52 +0000 (UTC) Received: (qmail 22947 invoked by alias); 3 Jun 2019 09:27:30 -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: List-Unsubscribe: X-Seq: 23958 Received: (qmail 10883 invoked by uid 1010); 3 Jun 2019 09:27:30 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f173.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25468. spamassassin: 3.4.2. Clear:RC:0(209.85.166.173):SA:0(-2.0/5.0):. Processed in 1.462092 secs); 03 Jun 2019 09:27:30 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B5XgCe6hgkaxmttYXc5P5haPGh4A8oqLx/6CkJ4emEI=; b=dRPKeRzYAMOZ7myrxIcpAHa/RxPEAbgygVQFsXDOzyoKpw7meW1MKT00JDqme4ALin Fy0u3T0/4Xa4CwXxwi9K8ebzR2AT4oXc14PkESrukZjtLk0nqKUbseqtR+ZLKAZ+dKSg FL6n49xcxelurHPOu7ArymJRqKRZxDcKbFx4sUVnJVmtAQRiMsnKYj0sWFh9IwnCZo6i CtzntqoBFTqeX8l504bq4fpDAI6J+icIa1DEK8crQuyeatCounE/JQ08j6QH9+hrNi14 8DU1Hl46hZnq/1JMx09eUPOkH3OYKz1vytGGqDJN9Y6MGid9y1Tv+CoNUI27rDqagQLB BNiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B5XgCe6hgkaxmttYXc5P5haPGh4A8oqLx/6CkJ4emEI=; b=AREpMJ7113nEPLv/UzVhFhnuSFu7DjIjc90h0xX07a/3w/t69xrN0w1fvXQCxh0q4m zB8Ye4DdtpZ2Mwvw85KbD1wq239eh9NoYA6lcOoZlVcHRbFDSZB9d/tI6RlrIG/bAOXM 95DMXSwPZHWeA1C1uh1jnrHSjFs41s8XWoY4KHGXCLPvzzsvfccmRYP9/04oth75KqR2 6fVNLodPhF5yFclI5amPAeJUQQSMGfvsXe/l4i3db15Cl4N9cpkK/LVRubh5B1JLGce6 v8ibdGWwoMq9UOEJQSeHZdu7hIzehRi+7Mak3tgyOQXNMR904sJtzFzXLe5jn9VLjjsq N0Zw== X-Gm-Message-State: APjAAAWIN87SNZhZBBgFvv4iZMk6vw6bVZGdtnbVUkOIvYLYKNniqYD7 qBG44cEugikLUY1bq8nVFWlXA7S66J2KxFWgnwQ= X-Google-Smtp-Source: APXvYqxuEZSAforO6ErgeWxcS7VZI2UqZK84nAD08+zVwu2jPVJzIFvsJcsWa+1ETV9cRwi15DmW5yXmRrp4+q/CbZQ= X-Received: by 2002:a24:7585:: with SMTP id y127mr16476364itc.112.1559554015536; Mon, 03 Jun 2019 02:26:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Mon, 3 Jun 2019 11:26:45 +0200 Message-ID: Subject: Re: Getting the command in preexec as precisely typed To: Sylvia Gough Cc: Sebastian Gniazdowski , Zsh Users Content-Type: text/plain; charset="UTF-8" When printing content outside of your control, use `print -r -- $1` or `echo -E - $1`. Plain `echo -E $1` won't work if the argument is `-n` or some other valid flag. Roman.