Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-441

Fix argument pass-through on Windows for pdk bundle exec

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • QA Risk Assessment:
      Needs Assessment

      Description

      Following up the known issue with the pdk bundle exec -- on Windows, the following behaviour needs to be fixed:

      #!/usr/bin/env ruby
      puts ARGV.inspect
      

      PS C:\Users\vagrant> pdk
      []
      PS C:\Users\vagrant> pdk foo
      ["foo"]
      PS C:\Users\vagrant> pdk foo --
      ["foo"]
      PS C:\Users\vagrant> pdk foo -- bar
      ["foo", "bar"]
      PS C:\Users\vagrant>
      

      Adding some debugging to the pdk function in the PS module, it is clear that the issue is already at that level. Leading to https://stackoverflow.com/a/12198146 (and others) it seems like this is the default behaviour of PowerShell, and can't be easily changed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              david.schmitt David Schmitt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support