{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/bash-completion/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/bash-completion/", "feed_url": "https://matoken.org/blog/tag/bash-completion/feed/json/", "language": "ja", "title": "bash completion – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "https://matoken.org/blog/?p=4017", "url": "https://matoken.org/blog/2024/05/06/bash-completion-function-is-broken/", "title": "bash \u306e\u88dc\u5b8c\u6a5f\u80fd\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f", "content_html": "
shell \u306e\u88dc\u5b8c\u6a5f\u80fd\u4fbf\u5229\u3067\u3059\u3088\u306d\uff0e
\n\u3057\u304b\u3057\uff0cbash \u3067\u88dc\u5b8c\u3092\u4f7f\u304a\u3046\u3068 tab key \u3092\u62bc\u3059\u3068\u30a8\u30e9\u30fc\u3092\u5410\u304f\u3088\u3046\u306b\u306a\u308a\u3080\u3057\u308d\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u90aa\u9b54\u306b\uff0e
bash: _comp_initialize: command not found\n
bash: _comp_initialize: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\n
\n
\u3053\u306e\u8fba\u304c\u58ca\u308c\u3066\u3044\u308b\u306e\u304b\u3082?
\n$ ls -l /etc/bash_completion*\n-rw-r--r-- 1 root root 45 Jan 25 2020 /etc/bash_completion\n\n/etc/bash_completion.d:\n\u5408\u8a08 160\n-rw-r--r-- 1 root root 17877 Apr 29 07:14 000_bash_completion_compat.bash\n-rw-r--r-- 1 root root 439 Feb 15 2022 git-prompt\n-rw-r--r-- 1 root root 379 Nov 8 23:18 global-python-argcomplete\n-rw-r--r-- 1 root root 135067 Jan 13 2023 gmic\n
\u58ca\u308c\u3066\u3044\u308b\u306e\u306a\u3089\u5c0e\u5165\u3057\u306a\u304a\u305b\u3070\u6cbb\u308a\u305d\u3046\uff0e
\n\u3068\u3044\u3046\u3053\u3068\u3067\u3053\u308c\u3067 bash \u3092\u8d77\u52d5\u3057\u76f4\u3059\u3053\u3068\u3067\u6cbb\u308a\u307e\u3057\u305f\uff0e
$ sudo apt reinstall bash-completion\n
\u6050\u3089\u304f\u5148\u65e5 diskfull \u62c5\u3063\u305f\u3068\u304d\u306b\u58ca\u308c\u3066\uff0c\u305d\u306e\u5f8c bash \u3092\u8d77\u52d5\u3057\u3066\u767a\u899a\u3057\u305f\u306e\u304b\u306a?
\n$ dpkg-query -W bash*\nbash 5.2.15-2+b2\nbash-argsparse 1.8.22.ga05fe6d-4~bpo12+1\nbash-builtins 5.2.15-2+b2\nbash-completion 1:2.11-6\nbash-doc\nbash-static\n$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Debian\nDescription: Debian GNU/Linux 12 (bookworm)\nRelease: 12\nCodename: bookworm\n$ arch\nx86_64\n