/usr/lib/snapd
NameSizeModeActions
complete.sh53940644editdlrm
etelpmoc.sh70310644editdlrm
info1310644editdlrm
snap-bootstrap103168720755editdlrm
snap-confine1550804755editdlrm
snap-device-helper432480755editdlrm
snap-discard-ns391520755editdlrm
snap-exec46276720755editdlrm
snap-failure26258720755editdlrm
snap-fde-keymgr38425120755editdlrm
snap-gdb-shim10360960755editdlrm
snap-gdbserver-shim10360960755editdlrm
snap-mgmt90410755editdlrm
snap-preseed91856720755editdlrm
snap-recovery-chooser71372880755editdlrm
snap-repair71783440755editdlrm
snap-seccomp21367280755editdlrm
snap-update-ns52418400755editdlrm
snapctl65623920755editdlrm
snapd225121360755editdlrm
snapd-apparmor21470880755editdlrm
snapd.core-fixup.sh38260755editdlrm
snapd.run-from-snap730755editdlrm
system-shutdown309600755editdlrm
Edit: /usr/lib/snapd/etelpmoc.sh (7031B)
# shellcheck shell=bash # # Copyright (C) 2017 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # etelpmoc is the reverse of complete: it de-serialises the tab completion # request into the appropriate environment variables expected by the tab # completion tools, performs whatever action is wanted, and serialises the # result. It accomplishes this by having functions override the builtin # completion commands. # # this always runs "inside", in the same environment you get when doing "snap # run --shell", and snap-exec is the one setting the first argument to the # completion script set in the snap. The rest of the arguments come through # from snap-run --command=complete _die() { echo "$*" >&2 exit 1 } if [[ "${BASH_SOURCE[0]}" != "$0" ]]; then _die "ERROR: this is meant to be run, not sourced." fi if [[ "${#@}" -lt 8 ]]; then _die "USAGE: $0