Skip to content

Directory not listing after a chdir() #27

@m13253

Description

@m13253

My distro: ArchLinux
Kernel version: Linux brilliant-laptop 3.16.3-1-ARCH #1 SMP PREEMPT Wed Sep 17 21:54:13 CEST 2014 x86_64 GNU/Linux
Mbox version: a131424

How to produce:

$ mbox bash
$ pwd
/home/brilliant
$ ls
Desktop Documents Downloads Music Pictures Public Videos
$ ls .  # Relative path
Desktop Documents Downloads Music Pictures Public Videos
$ ls /home/brilliant  # Absolute path
(empty)
$ ls /
(empty)
$ cd /home/brilliant  # Magic happens after cd
$ ls
(empty)
$ ls /
home  # Was empty before cd

What to expect:

  • Consistent behavior before cd and after cd

I would like to know, is the inconsistency a bug or a feature? If it is a bug, could you please fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions