Skip to content

Please add getconf(1) support for _PC_CASE_SENSITIVE #869

Open

Description

@gisburn

Please add getconf(1) support for _PC_CASE_SENSITIVE - that is needed for NTFS, FAT and ISO9660 filesystems.

Notes:

  • NTFS can do BOTH, and in Windows 11 even per directory.
  • This is not Windows-specific, Mac OSX also supports |pathconf(..., _PC_CASE_SENSITIVE, ...)|, and Linux will support this soon too.

Activity

  1. McDutchie commented on Jun 11, 2025

    @McDutchie

    This is already detected and supported, you just need to omit the initial _. At least on macOS, with /opt/ast/bin in $PATH:

    $ uname -sr
    Darwin 24.5.0
    $ getconf --version
      version         getconf (ksh 93u+m) 2024-02-09
    $ getconf PC_CASE_SENSITIVE /tmp
    0
    

    But I thought that Windows has _PC_CASE_INSENSITIVE instead of _PC_CASE_SENSITIVE. See the new libast pathicase function.

  2. McDutchie commented on Jul 14, 2026

    @McDutchie

    @gisburn, can you confirm that getconf PC_CASE_SENSITIVE /tmp (sans initial _) works on Cygwin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions