From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18216 invoked by alias); 10 Nov 2013 13:07:28 -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: 18133 Received: (qmail 9493 invoked from network); 10 Nov 2013 13:07:24 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 Date: Sun, 10 Nov 2013 08:07:21 -0500 From: Aaron Schrab To: zsh-users@zsh.org Subject: Re: Curiosity... :) Message-ID: <20131110130721.GD6807@pug.qqx.org> Mail-Followup-To: zsh-users@zsh.org References: <20131110114648.GA3417@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20131110114648.GA3417@solfire> User-Agent: Mutt/1.5.22+36 (g7db327c) (2013-10-16) At 12:46 +0100 10 Nov 2013, meino.cramer@gmx.de wrote: >just stumbled across this: > >Doing > > /home/user/>.. > >let me jump a directory in direction to the root. You apparently have the AUTO_CD option enabled. The description of that in the zshoptions(1) man page is: If a command is issued that can't be executed as a normal command, and the command is the name of a directory, perform the cd command to that directory. There usually isn't a '..' command, but there's always a directory with that name, so that rule kicks in. >But doing > > /home/user/>. > >gives me: > > .: not enough arguments > zsh: exit 1 But '.' is a builtin command name, so that command is run. Since that's the first thing to be tried it doesn't matter that '.' is also a directory name.