{"id":4017,"date":"2024-05-06T06:23:00","date_gmt":"2024-05-05T21:23:00","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4017"},"modified":"2024-05-06T05:24:13","modified_gmt":"2024-05-05T20:24:13","slug":"bash-completion-function-is-broken","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2024\/05\/06\/bash-completion-function-is-broken\/","title":{"rendered":"bash \u306e\u88dc\u5b8c\u6a5f\u80fd\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f"},"content":{"rendered":"<div class=\"paragraph\">\n<p>shell \u306e\u88dc\u5b8c\u6a5f\u80fd\u4fbf\u5229\u3067\u3059\u3088\u306d\uff0e<br \/>\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<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>bash: _comp_initialize: command not found<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>bash: _comp_initialize: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<\/pre>\n<\/div>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u8fba\u304c\u58ca\u308c\u3066\u3044\u308b\u306e\u304b\u3082?<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ 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<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u58ca\u308c\u3066\u3044\u308b\u306e\u306a\u3089\u5c0e\u5165\u3057\u306a\u304a\u305b\u3070\u6cbb\u308a\u305d\u3046\uff0e<br \/>\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<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo apt reinstall bash-completion<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\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?<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ 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<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>shell \u306e\u88dc\u5b8c\u6a5f\u80fd\u4fbf\u5229\u3067\u3059\u3088\u306d\uff0e \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  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[272,815],"class_list":["post-4017","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-bash","tag-bash-completion"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=4017"}],"version-history":[{"count":2,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4017\/revisions"}],"predecessor-version":[{"id":4019,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4017\/revisions\/4019"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}