Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash-completion: remove unnecessary sub-shelling #1822

Merged
merged 2 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ DNF CONTRIBUTORS
Michael Scherer <misc@redhat.com>
Neal Gompa <ngompa13@gmail.com>
Nathaniel McCallum <npmccallum@redhat.com>
Oğuz Ersen <oguzersen@protonmail.com>
Oğuz Ersen <oguz@ersen.moe>
Olivier Andrieu <olivier.andrieu@esterel-technologies.com>
Padraig Brady <P@draigBrady.com>
Pavel Grunt <pgrunt@redhat.com>
Expand Down
2 changes: 1 addition & 1 deletion etc/bash_completion.d/dnf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ _dnf_commands_helper()
{
local helper_cmd="import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])"
local helper_opts="-d 0 -q -C --assumeno --nogpgcheck"
echo "$( ${__dnf_python_exec} -c "$helper_cmd" "$@" $helper_opts 2>/dev/null </dev/null )"
"${__dnf_python_exec}" -c "$helper_cmd" "$@" $helper_opts 2>/dev/null </dev/null
}

# decide "path-like?" per initial: dot (./f.rpm, ../b.rpm), / (full path) or ~
Expand Down