Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2606

findfiles documentation falsely claims brace support

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 3.10.7, 3.12.4, 3.15.1
    • Component/s: Documentation
    • Labels:
      None

      Description

      evalfunction.c is missing GLOB_BRACE, however it's documented to be available in findfiles:
       
      https://docs.cfengine.com/docs/3.10/reference-functions-findfiles.html
      " * {x,y,anything} will match x or y or anything."
      However code states quite clear:
      https://github.com/cfengine/core/blob/37e40b61521efb63e1b5c8efb441e20805974fbf/libpromises/evalfunction.c#L4084

      int globflags = 0; // TODO: maybe add GLOB_BRACE later

       
      Please update documentation or fix the todo and automated tests.
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                kortemik Mikko Kortelainen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel