zsh-users
 help / color / mirror / code / Atom feed
* Curiosity... :)
@ 2013-11-10 11:46 meino.cramer
  2013-11-10 13:07 ` Aaron Schrab
  0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2013-11-10 11:46 UTC (permalink / raw)
  To: zsh-users

Hi,

just stumbled across this:

Doing

    /home/user/>..

let me jump a directory in direction to the root.

But doing 

    /home/user/>.

gives me:

    .: not enough arguments
    zsh: exit 1


>From the logical point of view I had expected to be beamed 'here'
instead of 'beamed up'...but...
Scotty got problems...or?  ;)

Best regards,
mcc







^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Curiosity... :)
  2013-11-10 11:46 Curiosity... :) meino.cramer
@ 2013-11-10 13:07 ` Aaron Schrab
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Schrab @ 2013-11-10 13:07 UTC (permalink / raw)
  To: zsh-users

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-10 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-10 11:46 Curiosity... :) meino.cramer
2013-11-10 13:07 ` Aaron Schrab

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).