[dev] [stest] Hidden file processing

From: Kamil Cholewiński <harry666t_AT_gmail.com>
Date: Fri, 06 Oct 2017 15:50:28 +0200

Hi list,

stest from dmenu f428f3e produces broken results for paths starting with
a "." that are not hidden files. I think this is best illustrated with a
conversation with the shell:

> $ ls -d ./bin
> ./bin
> $ stest -d ./bin
> $ stest -ad ./bin
> ./bin

stest should probably treat the path with basename(3) or realpath(3), or
just assume "-a" if there are slashes in the path (which would almost
match the behavior of "ls -d"). In any case, the current behavior is
very counter-intuitive (I've only figured out what's happening after
reading the source).

Thoughts?

<3,K.
Received on Fri Oct 06 2017 - 15:50:28 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 06 2017 - 16:00:36 CEST