zsh-users
 help / color / mirror / code / Atom feed
From: Aaron Schrab <aaron@schrab.com>
To: zsh-users@zsh.org
Subject: Re: Curiosity... :)
Date: Sun, 10 Nov 2013 08:07:21 -0500	[thread overview]
Message-ID: <20131110130721.GD6807@pug.qqx.org> (raw)
In-Reply-To: <20131110114648.GA3417@solfire>

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.


      reply	other threads:[~2013-11-10 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10 11:46 meino.cramer
2013-11-10 13:07 ` Aaron Schrab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131110130721.GD6807@pug.qqx.org \
    --to=aaron@schrab.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).