From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6419 invoked from network); 11 Sep 2021 18:41:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Sep 2021 18:41:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631385717; b=Pqe8xuXtb+glyWzynkX1WciqY+WMySCBNg7lftWL/ymmErW2XXjCypQEDETUPDM+PKrtStfoiB oUSxqpfUXabNtpCN65R5p0IP0QPjtSMqYnnQEe+mg+P9J9wvTCuCYvj0L4kJl9aqGpxLHPksW8 Tjv9+i+EOcmWcERtkGb9EaDVsJzPnZ1VQVurHu9ca0ySdnk129rf7qwa9DUmOI933ypWCxW7M8 Q79M3CGhzXjjs1LJ7/hIup1c91oxZCWIJXgG0vPcjVKsrHba1qfha3ZDenfO/7HFXJFN7elLhc kXHebfOlUVb6lD7F5B4d7uNSOgwg35Dy1qNoaU7K3SqdUw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1631385717; bh=00kCfb0bWc7QCxmB9Ysz26/cK4EI8SQW+oLZIbCRrBQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To: From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=E59Sf0EJqWNYgyF366gaYqmFhUTsHnw8K0v81WhCVA3Dg5M6FSvTf2vtM5c79gEeF63ogip4d8 Zm+XLJfrUbN6hkni34R+9YxYBcBqV4CtDCic8+/JJhnH5N7MqHGqEutXGdCBGD2KYHMgjfXYAS 0zVPDFd9oQ9LuXrhSvuOsusSqPBDyLljwQahG/FdwTQKJ3hL5lNFGONBNTzSmelM0NMtANR98L O2drgagQMtZHwuRBjCX7ym6B787n/RkEOzjQPvHi3z3/9azgcVzLd73eeE9vSjv4E67UoAGD4V jkWSoALjuJ1atx3oDLTQE0qZhFRCSFbh4qNg6d5USww4Jg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Message-ID:Subject:To:From:Date:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=Yd8YR6GW3/MtwuDFae2vABGo1vwPL6PQOaTSgI2EnHU=; b=Kl1Vpev8QFdpg/PfpNXUNhOS6N R83fxnN4i85vA+s7/nXO4zrBPpsLepV1Zn6QVNJwBpYAtxwv3vO1W0DcKPM2dy2Jy/uxQYc+wMMx5 evA4F43v9pgrLSccK5T4MziJ9mWge/E/EIKHocQjLsPZLODIcx0mYdItnD4XwK9/HwwKVyi/R4V4e Rado8PYSEAzlVqYpA3GZRItQ+RWdKw0+/EHT2pUgmR+SiERgIhIyTjDFCrzejU6ayXDNWIzHWEDVj z6FDcIUALfJ358STvMgXTq7n403WEpuPNwA0/WIkfny695CKHBr9lyJqPiLNRzKQ68x7FXGCfs+xw RabJMW0A==; Received: from authenticated user by zero.zsh.org with local id 1mP7wp-000BVa-Al; Sat, 11 Sep 2021 18:41:55 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:53476) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mP7w2-000Ank-0g; Sat, 11 Sep 2021 18:41:07 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id 9CC0E208B3 for ; Sat, 11 Sep 2021 14:41:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1631385663; bh=00kCfb0bWc7QCxmB9Ysz26/cK4EI8SQW+oLZIbCRrBQ=; h=Date:From:To:Subject:From; b=ouo24gelGlnFFWFpRBCk1t3hpwDewNSQtMmzHxN2DxNVRMpUl1GazUc5H2MpZ2mvF 0J2JTfrZKzje7aww3pmlePIc/cOSY+SF0eAAufRzWHKeIC/TXoBxdr0JbVsMvQnDJT P4dJK7vj2W4EWlTlynujEf4zVhBYg/+IeKp7OFKrUIvceGUvLFWwtUQZFnqc3p7VMa J4Q6cilk/BDcWfhK3g07dMu6NiO5DUVKgd3kK6r6V9lUiGxRF6Z6Dlp+fuqlySyNSr geEDlOsqMVtmuJrywUTnNIlxpn7tZ0ldSanLzP5AzA7NyMc+Uw5bNNRU7bb+51MjsG hMtKtB6UAGHiA== MIME-Version: 1.0 Date: Sat, 11 Sep 2021 14:41:03 -0400 From: Steve Dondley To: Zsh users Subject: Is there any possible way to automatically escape characters when executing an alias in zsh? User-Agent: Dondley Message-ID: <8432871497e50ae7a6136a9e03a09ad6@dondley.com> X-Sender: s@dondley.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 27103 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: I have many aliases set up for taskwarrior in zsh: alias tasn="task +sn add"` On the command line, I'll type in: tasn some task description here Which works unless I put in single quote or some other character: tasn call Tom's friend This will thrown an error unless I escape the apostrophe. I don't want to turn these into functions because then I lose the autocomplete capabilities. I'm wondering if there might be some neat trick that will allow me to automatically escape apostrophes (and other problematic characters) in the task description. Thanks.