Skip to content

Commit 9abbf79

Browse files
authored
Use ps -U instead of ps -u (#994)
Fixes #993
1 parent 0a02ed1 commit 9abbf79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/dap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ Lua module: dap.utils
11611161

11621162
pick_process({opts}) *dap.utils.pick_process*
11631163
Show a prompt to select a process pid
1164-
Requires `ps ah -u $USER` on Linux/Mac and `tasklist /nh /fo csv` on windows.
1164+
Requires `ps ah -U $USER` on Linux/Mac and `tasklist /nh /fo csv` on windows.
11651165

11661166

11671167
Parameters:

lua/dap/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ end
5555
function M.get_processes()
5656
local is_windows = vim.fn.has('win32') == 1
5757
local separator = is_windows and ',' or ' \\+'
58-
local command = is_windows and {'tasklist', '/nh', '/fo', 'csv'} or {'ps', 'ah', '-u', os.getenv("USER")}
58+
local command = is_windows and {'tasklist', '/nh', '/fo', 'csv'} or {'ps', 'ah', '-U', os.getenv("USER")}
5959
-- output format for `tasklist /nh /fo` csv
6060
-- '"smss.exe","600","Services","0","1,036 K"'
6161
-- output format for `ps ah`

0 commit comments

Comments
 (0)