Commit 84d69c8
committed
tmux_cmd(fix[logging]): standardize tmux_cmd extra on shlex.join
why: Pre-execution used shlex.join while error and post-execution used
subprocess.list2cmdline, producing inconsistent formats for the same
tmux_cmd extra key. list2cmdline uses Windows CMD quoting rules which
are incorrect on Linux.
what:
- Replace subprocess.list2cmdline(cmd) with shlex.join(cmd) in error handler
- Replace subprocess.list2cmdline(cmd) with shlex.join(cmd) in post-execution log
- All three logging sites now use shlex.join consistently1 parent b3e75d1 commit 84d69c8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
0 commit comments