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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4007 invoked from network); 16 Mar 2022 16:11:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Mar 2022 16:11:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647447096; b=rW8z07sG0LBC4Qr2OCkEjv1qiirSrZLJTIzaHheCIn0BrEZkWC3bi3OdXbQIy0/CftgYyMuqYA MNwShhLtAMoPJMptST3AKbjJl/pPbUb6JYisSvknwgwlNj0gAiKTaH/OIg31cY990Jk2cYLrCt soXKaXKthq7vfxekIMT+5pZkb9WWeAIepP0X9y3oK2UO3rKzR6212yFH2lLNXV1Lr5BZOsX7R6 0E5ARXYuabAhgOlQMH/1G5sURksH3DmU3zJJHbko32vtFz3tEG+sVWW0Af12Lnr20g3CIqmgUB EHCmNu6zydc8YYRCX+TuXl4QoJzRiOC6o3O9AD3fm6AYMQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (p3plsmtp09-01-2.prod.phx3.secureserver.net) smtp.remote-ip=97.74.135.162; dmarc=none header.from=rayninfo.co.uk; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1647447096; bh=qk8hZq12bqeWg6jEI3HDqDPeh+YkcA73FZr4ZxsCW7k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=WcIzvGFa+OzUx7KdOQFtqJmfe66WhIrF1dLPx44P8Ga5Oh/5PYbsvCLiG6WZzFDwa9sD5l8YXm RSRiuS9ve0ZIcOXEBCcF16Qg+erP+lcHhoLvpXROxQb0uEuw6i0DpjrTxr6k9zaAD9a7FZvd7U PQmOI6ldZ9D70xoFNmPPoxYzCo1Z9XkXHbsshwc/NE6QaTuLeTLj2FgWGm+Vm9TQi15ekU4vrW /n6ijfbTdWtmjee2ke7WUgqGpKkh3smx1SJ5oNiqVUbwm+Wfc6m/8qKGrq9EGPUA4ZsTEcvdIm lyr1LXDua7s0a3pgW3AJW0AzRQA3mgf13fme1JQkJYaD2w==; 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:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Jf3auSzypqZjiQJaTEM0Oy+F6AW1KMIrzhp5QsjCI8A=; b=lkvXDxU1/qK2pTVsyVw+/Wobb9 TpLEuW8Hwu4153jjTHvXK0NaMsslvcQHXfac5Dcm25ChNvr3qWIX4o5jQAndnJC3n/g7a5qTfK8n8 IyUpNacf89odgyLHYUoB51C2q91rdUQTS+Z2e9ZkgssWEJMgyfrkcAT9dDkpgYvMO8KEXmKSZ5FzR 2a/38VYEFWG5K8AbHhty6/7jwuPlkMY+0voVYmk8fc4oyNMU2bRMGztiVWu/cfELVsfHUk1wAaTOS 8M/+UgLlnXjNwaAyBzkIQjnyHoyFKVY9211q0FSTAQ0Pk9FFIFjQRL5ezY3tMzjQA1Mvhwo/GLV8x RmG+6+lQ==; Received: from authenticated user by zero.zsh.org with local id 1nUWFM-0005SF-9s; Wed, 16 Mar 2022 16:11:36 +0000 Authentication-Results: zsh.org; iprev=pass (p3plsmtp09-01-2.prod.phx3.secureserver.net) smtp.remote-ip=97.74.135.162; dmarc=none header.from=rayninfo.co.uk; arc=none Received: from p3plsmtp09-01-2.prod.phx3.secureserver.net ([97.74.135.162]:48592 helo=p3plwbeout09-01.prod.phx3.secureserver.net) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nUWAB-0004Bx-6T; Wed, 16 Mar 2022 16:06:15 +0000 Received: from mailex.mailcore.me ([94.136.40.143]) by :WBEOUT: with ESMTP id UWA7nm7iSnJvCUWA8nSx6J; Wed, 16 Mar 2022 09:06:12 -0700 X-CMAE-Analysis: v=2.4 cv=DoSTREz+ c=1 sm=1 tr=0 ts=62320af4 a=EhJYbXVJKsomWlz4CTV+qA==:117 a=1XUAoriuO2rjmCQC64jSlQ==:17 a=4OHr2usCQUQA:10 a=IkcTkHD0fZMA:10 a=o8Y5sQTvuykA:10 a=22Ro6XbQAAAA:8 a=OJf2oApBaY6gnJYY03UA:9 a=QEXdDO2ut3YA:10 a=p1RiBf0vZFgkX3Jmbd9N:22 X-SECURESERVER-ACCT: david@rayninfo.co.uk X-SID: UWA7nm7iSnJvC Received: from [95.145.222.163] (helo=[192.168.1.231]) by smtp04.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1nUWA5-0000wJ-FU for zsh-users@zsh.org; Wed, 16 Mar 2022 16:06:11 +0000 Message-ID: <5e1b8172-c51a-d2eb-230b-338919369e0e@rayninfo.co.uk> Date: Wed, 16 Mar 2022 16:06:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Is the ~ really superfluous in a cd ~- type command? Content-Language: en-US To: Zsh-Users List References: From: zzapper In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailcore-Auth: 8308408 X-Mailcore-Domain: 840527 X-123-reg-Authenticated: david@rayninfo.co.uk X-Originating-IP: 95.145.222.163 X-CMAE-Envelope: MS4xfI+sU9zKle84coVouAGqCMzkZTMYphUJRPQvcMUdkKP2hut6xZi/mRQutXhdPV7C9Z8qCrdosR8gzblxG7zI2xLnFJtms+x1OTTjeCYZb8unOB3owCKd vM61bXzE6so0pX8r8Engsdu0cS5fIOHEZUGuF8HVQSmipvp5jW9aTOzZw6csUTc0DB6ia/OSMKXQ4w== X-Seq: 27568 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: On 16/03/2022 15:51, Mikael Magnusson wrote: > On 3/16/22, zzapper wrote: >> Hi >> >> cd - or cd ~- >> >> cd -1 or cd ~-1 >> >> seem to do the same thing > Yes, cd handles -num itself, but for other commands you need the expansion. > ahh! yes with cd -num you can cd successfully but you DON'T get tab expansion So there's a great benefit to using tilda cd ~4 cd /aaa/ cd aaa/sub etc # if you want a quirk ~ on its own takes you to your home directory If you've got 'setopt autocd' zzapper