Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Change interactive command into a comment
- X-seq: zsh-users 24426
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxx>
- Subject: Change interactive command into a comment
- Date: Wed, 13 Nov 2019 12:34:35 -0600
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9rbj2RPoScPS4zk74XWtBoMkX7nUvrPdB2Mbmwr+3yw=; b=caqGKesQdlB76s52vOmkBAHgKv 0/9ig8gM6sRF9C5XqArI6WWDngAoKKDV8aEn9HXD/WSYq12mPr/mpVc3AEsAAE80W9dcH9ZzvU5Ak wso4LIP3/QnuYYf/9j33qkD+94mLWg+wWMZvOyVHjFbRmJNZr0WLWc8RxldGFo4y4tkTQB1nO6rJ3 lORQy4uLYZaREA75MOAMMtQdplPxHmspw8l0AK3SCNiH7OPEfheeP1jbB42BpmerRJBCnwxXA5q++ dcqnkRnOhlK2b2PSLYCbxtiwdVxoi6ijk0dWz5uxCnIZVMmQPDlaqPHiw85ZPxrrr5+5z04+U2WFd pyj/+KkQ==;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
With bash, I got into the following habit. If I started typing a long command and then decided I didn’t want to execute it right now for some reason, I would hit control-A to get back to the start of the line and then add a # in front and hit return.
This would put the command into history and so later I could recall it, remove the #, and execute the command.
With zsh, when I add the # to the front and hit return I get:
zsh: bad pattern: #
I found INTERACTIVE_COMMENTS but now I’m curious, what is zsh trying to do with a line starting with # ? e.g. # echo dog
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author