{"id":2873,"date":"2020-11-12T20:52:46","date_gmt":"2020-11-12T11:52:46","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2873"},"modified":"2020-11-12T20:52:46","modified_gmt":"2020-11-12T11:52:46","slug":"gnu-bash-bracketed-paste-settings","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2020\/11\/12\/gnu-bash-bracketed-paste-settings\/","title":{"rendered":"GNU Bash\u306ebracketed paste\u306e\u8a2d\u5b9a"},"content":{"rendered":"<div class=\"paragraph\">\n<p><iframe loading=\"lazy\" width=\"640\" height=\"360\" scrolling=\"no\" frameborder=\"0\" style=\"border: none;\" src=\"https:\/\/www.bitchute.com\/embed\/E63jAvwMKbSb\/\"><\/iframe><\/p>\n<p>Debian sid amd64\u74b0\u5883\u3067\u6700\u8fd1Bash\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u8cbc\u308a\u4ed8\u3051\u305f\u6587\u5b57\u5217\u304c\u53cd\u8ee2\u3057\u3066\u5373\u6642\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e<br \/>\n\u4f55\u3089\u304b\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3068\u53cd\u8ee2\u306f\u89e3\u9664\u3055\u308c\u3066\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e\u6539\u884c\u306e\u542b\u307e\u308c\u305f\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u8aa4\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u3053\u3068\u304c\u6291\u5236\u3067\u304d\u3066\u3044\u3044\u611f\u3058\u3067\u3059\uff0e\u3067\u3082\u8cbc\u308a\u4ed8\u3051\u305f\u3060\u3051\u3067\u5b9f\u884c\u3055\u308c\u305f\u3064\u3082\u308a\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u3063\u305f\u308a\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u4fbf\u5229\u3060\u3051\u3069\u3053\u308c\u306a\u3093\u3060\u308d\u3046\u3068\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>Changelog\u3092\u898b\u3066\u307f\u307e\u3059\uff0e<br \/>\n<code>\/usr\/share\/doc\/bash\/changelog.Debian.gz<\/code> \u306f\u6b86\u3069Upstream\u3078\u306e\u8ffd\u5f93\uff0e<br \/>\n<code>\/usr\/share\/doc\/bash\/changelog.gz<\/code> \u3092\u898b\u308b\u3068\u305d\u308c\u3089\u3057\u3044\u3082\u306e\u304c\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>bash-4.4-alpha, bash-4.3-release.\u304b\u3089 <code>Bracketed paste mode<\/code> \u304c\u5165\u3063\u305f\u3088\u3046\u3067\u3059\uff0e<br \/>\n\u305d\u3057\u3066bash-5.1-alpha, bash-5.0-release\u304b\u3089\u65e2\u5b9a\u5024\u306b\u306a\u305f\u3088\u3046\u3067\u3059\uff0e(\u305d\u3057\u3066\u6c17\u3065\u3044\u305f)<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\">bash-4.4-alpha, bash-4.3-release.<\/div>\n<blockquote>\n<div class=\"paragraph\">\n<p>b.  There is a new bindable variable, `enable-bracketed-paste&#8217;, which enables<br \/>\nsupport for a terminal\u2019s bracketed paste mode.<\/p>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\">bash-5.1-alpha, bash-5.0-release.<\/div>\n<blockquote>\n<div class=\"paragraph\">\n<p>h. Bracketed paste mode is enabled by default.<\/p>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"paragraph\">\n<p>info\u3092\u898b\u308b\u3068 <code>enable-bracketed-paste<\/code> \u3068\u3044\u3046\u9805\u76ee\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\">info bash<\/div>\n<blockquote>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>enable-bracketed-paste (On)\n       When set to On, readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating\n       each character as if it had been read from the keyboard.  This can prevent pasted characters from being interpreted as editing commands.<\/pre>\n<\/div>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\">info bash<\/div>\n<blockquote>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>Readline Variables\n    Readline has variables that can be used to further customize its behavior.  A variable may be set in the inputrc file with a statement of the form<\/pre>\n<\/div>\n<\/div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>       set variable-name value\nor using the bind builtin command (see SHELL BUILTIN COMMANDS below).<\/pre>\n<\/div>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"paragraph\">\n<p>\u5b9f\u969b\u306b\u53e9\u3044\u3066\u307f\u307e\u3059\uff0e\u3053\u3093\u306a\u611f\u3058\u3067off\/on\u3067\u304d\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock bash\">\n<div class=\"content\">\n<pre class=\"CodeRay highlight\"><code>$ bind 'set enable-bracketed-paste off'\n$ bind 'set enable-bracketed-paste on'<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>~\/.bashrc<\/code> \u8fba\u308a\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u6b21\u56de\u306ebash\u8d77\u52d5\u6642\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<div class=\"title\">\u305d\u306e\u4ed6<\/div>\n<ul>\n<li>byobu-screen\u3067\u306f <code>enable-bracketed-paste on<\/code> \u3057\u3066\u3082\u5229\u7528\u3067\u304d\u306a\u3044?<\/li>\n<li>tmux\u3067\u306eCtrl+b Ctrl + ] \u3067\u306e\u8cbc\u4ed8\u3051\u6642\u306b\u306f\u7121\u8996\u3055\u308c\u308b?<\/li>\n<li>Ubuntu 20.10 amd64\u306e5.0-6ubuntu2\u3067\u306f\u65e2\u5b9a\u5024\u3067\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3051\u3069 <code>enable-bracketed-paste on<\/code> \u3067\u6709\u52b9\u306b\u51fa\u6765\u308b<\/li>\n<\/ul>\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.1~rc2-1\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux bullseye\/sid\nRelease:        unstable\n$ uname -m\nx86_64<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Debian sid amd64\u74b0\u5883\u3067\u6700\u8fd1Bash\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u8cbc\u308a\u4ed8\u3051\u305f\u6587\u5b57\u5217\u304c\u53cd\u8ee2\u3057\u3066\u5373\u6642\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e \u4f55\u3089\u304b\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3068\u53cd\u8ee2\u306f\u89e3\u9664\u3055\u308c\u3066\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e\u6539\u884c\u306e\u542b\u307e\u308c\u305f\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051 [&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":"","footnotes":""},"categories":[7,6,199,63],"tags":[],"class_list":["post-2873","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2873","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=2873"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2873\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}