Re: t0005-signals.sh fails with ksh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> Here's an oddity I isolated based on a failure in t5502:
>
>   $ git init foo && cd foo
>   Initialized empty Git repository in /home/peff/foo/.git/
>
>   $ (cd .git/objects && ls)
>   info pack
>
> OK, makes sense. Now...
>
>   $ mkdir subdir && cd subdir
>   $ ls ../.git/objects
>   info  pack
>   $ cd ../.git/objects
>   ksh: cd: /home/peff/foo/git/objects: [No such file or directory]
>
> Um, what? Apparently using "../.foo" will eat the "." off of "foo"?

That is fun.  And doing

    $ mkdir -p git/objects

just before you create and chdir into subdir does tell me that the
last "cd ../.git/objects" is turned into "cd ../git/objects".

Actually, with that extra thing, changing the last one to

    $ cd ../..git/objects

still takes me to ../git/objects, it seems.  But lookie here:

    $ cd ../.....git/objects
    ksh: cd: /var/tmp/x/ksh/...git/objects: [No such file or directory]

WAT.

I am tempted to say that we should write it off as utterly broken.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]