mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 12:45:13 +00:00
Comment *why* adb needs its redirections hand-fed
[ci skip]
This commit is contained in:
parent
2b6ce30a70
commit
9ae880f6ac
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ function __fish_adb_run_command -d 'Runs adb with any -s parameters already give
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_adb_list_packages
|
function __fish_adb_list_packages
|
||||||
|
# That "2\>" is to pass the redirection *to adb*.
|
||||||
|
# It sends stderr from commands it executes to its stdout as well.
|
||||||
|
# Why it does that, I don't know - crossing the streams is a bad idea (c.f. Ghostbusters)
|
||||||
__fish_adb_run_command pm list packages 2\>/dev/null | string replace 'package:' ''
|
__fish_adb_run_command pm list packages 2\>/dev/null | string replace 'package:' ''
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue