[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
../.. resolution of ls
From: |
Peng Yu |
Subject: |
../.. resolution of ls |
Date: |
Sun, 7 Jun 2020 12:23:06 -0500 |
Hi,
It seems that ../../ can not be resolved symbolically by ls. See the
following example. I'd like `ls ..` to print both a and b.
Unfortunately, it only print b because it thinks it is in /tmp/i/a/b
instead of /tmp/i/b. Is there a way to use symbolic pwd instead of abs
pwd? Thanks.
/tmp/i$ tree
.
├── a
│ └── b
└── b -> a/b/
/tmp/i$ cd b
/tmp/i/b$ ls -H ../
b
/tmp/i/b$ ls ../
b
--
Regards,
Peng
- ../.. resolution of ls,
Peng Yu <=