Skip to content
  • Rik Steenkamp's avatar
    Modify getFullArgs to include program name · b093e631
    Rik Steenkamp authored and Ben Gamari's avatar Ben Gamari committed
    Fixes an inconsistency of `getFullArgs` across operating systems. On
    non-Windows systems the returning list did not include the program name
    as the first element, while on Windows systems it did.
    
    As `System.Environment` depends on this behaviour of `getFullArgs` under
    Windows, this is now the behaviour across all operating systems.
    Computation `getFullArgs` is now like the "raw" version of `getArgs`,
    similar to `argv` in other languages.
    
    This patch also fixes T10728 under Windows.
    
    Reviewers: austin, hvr, erikd, #ghc_windows_task_force, Phyx, bgamari
    
    Reviewed By: #ghc_windows_task_force, Phyx, bgamari
    
    Subscribers: Phyx, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1713
    b093e631