in reply to Re: An anomaly with Filesys::DfPortable, I need your eyes
in thread An anomaly with Filesys::DfPortable, I need your eyes

Another check is to use abs_path from Cwd to check whether they're resolving to the same file perhaps. I use the following shell function:

abs_path () { perl -MCwd=abs_path -lE 'say abs_path( $_ ) for @ARGV' "$@" }

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^3: An anomaly with Filesys::DfPortable, I need your eyes
by Intrepid (Curate) on Mar 10, 2026 at 16:26 UTC

    I ran your code (in Cygwin's shell), Fletch, thanks. My directories are absolute paths:

    $ abs_path `perl -MConfig -le 'printf "%s %s", $Config{installprivlib}, $Config{installarchlib}'`
    /usr/share/perl5/5.40
    /usr/lib/perl5/5.40/x86_64-cygwin-threads
    

    I tried an idea that occurred to me (and is indirectly suggested by Dave above). The 'nix command du:

     
    $ du -sh `perl -MConfig -le 'printf "%s %s", $Config{installprivlib}, $Config{installarchlib}'`
    27M     /usr/share/perl5/5.40
    24M     /usr/lib/perl5/5.40/x86_64-cygwin-threads
    

    I'd say that du is doing something different (and what I want) from what Filesys::DfPortable dfportable is doing. The above question from Dave is on target. The two dirs are on the same filesystem. I was naively believing that I'd get the sum of the usage of each directory tree, not of the entire filesystem containing the directory tree(s). A significant distinction, eh. Despite the use of the term Filesys. Ok, that warrants a duh.

        – Soren
    Mar 10, 2026 at 16:21 UTC