CINXE.COM

Bash (Unix shell) - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Bash (Unix shell) - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"e2490486-1d15-43d5-81dd-103e322b4bec","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Bash_(Unix_shell)","wgTitle":"Bash (Unix shell)","wgCurRevisionId":1282239954,"wgRevisionId":1282239954,"wgArticleId":4547,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description is different from Wikidata","Use dmy dates from March 2014","Articles to be split from January 2025","All articles to be split","Pages with timeline metadata","Articles needing cleanup from January 2025","All pages needing cleanup","Articles with sections that need to be turned into prose from January 2025","Articles needing cleanup from January 2019","Articles containing how-to sections","Unix shells","1989 software","Cross-platform free software","Domain-specific programming languages","Dynamically scoped programming languages","Free software programmed in C","GNU Project software","Scripting languages","Text-oriented programming languages"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Bash_(Unix_shell)","wgRelevantArticleId":4547,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":100000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q189248","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGELevelingUpEnabledForUser":false}; RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.tablesorter.styles":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.tablesorter","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.quicksurveys.init","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cjquery.tablesorter.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.21"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/1200px-Gnu-bash-logo.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="506"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/800px-Gnu-bash-logo.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="337"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/640px-Gnu-bash-logo.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="270"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Bash (Unix shell) - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Bash_(Unix_shell)"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Bash_Unix_shell rootpage-Bash_Unix_shell skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Bash+%28Unix+shell%29" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Bash+%28Unix+shell%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Bash+%28Unix+shell%29" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Bash+%28Unix+shell%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-History" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#History"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>History</span> </div> </a> <button aria-controls="toc-History-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle History subsection</span> </button> <ul id="toc-History-sublist" class="vector-toc-list"> <li id="toc-Timeline" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Timeline"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Timeline</span> </div> </a> <ul id="toc-Timeline-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Features" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Features"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Features</span> </div> </a> <button aria-controls="toc-Features-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Features subsection</span> </button> <ul id="toc-Features-sublist" class="vector-toc-list"> <li id="toc-List_of_Short_Descriptions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#List_of_Short_Descriptions"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>List of Short Descriptions</span> </div> </a> <ul id="toc-List_of_Short_Descriptions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-General_Discussion" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#General_Discussion"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>General Discussion</span> </div> </a> <ul id="toc-General_Discussion-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Control_Structures" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Control_Structures"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Control Structures</span> </div> </a> <ul id="toc-Control_Structures-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Process_Management_(a.k.a.,_&quot;Job_control&quot;)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Process_Management_(a.k.a.,_&quot;Job_control&quot;)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Process Management (a.k.a., "Job control")</span> </div> </a> <ul id="toc-Process_Management_(a.k.a.,_&quot;Job_control&quot;)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Portability_with_POSIX" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Portability_with_POSIX"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Portability with POSIX</span> </div> </a> <ul id="toc-Portability_with_POSIX-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Brace_Expansion" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Brace_Expansion"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Brace Expansion</span> </div> </a> <ul id="toc-Brace_Expansion-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Configurable_execution_environment(s)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Configurable_execution_environment(s)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7</span> <span>Configurable execution environment(s)</span> </div> </a> <ul id="toc-Configurable_execution_environment(s)-sublist" class="vector-toc-list"> <li id="toc-Shell_and_Session_Startup_Files_(a.k.a.,_&quot;Dot_Files&quot;)" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Shell_and_Session_Startup_Files_(a.k.a.,_&quot;Dot_Files&quot;)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.1</span> <span>Shell and Session Startup Files (a.k.a., "Dot Files")</span> </div> </a> <ul id="toc-Shell_and_Session_Startup_Files_(a.k.a.,_&quot;Dot_Files&quot;)-sublist" class="vector-toc-list"> <li id="toc-Legacy-compatible_Bash_startup_example" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Legacy-compatible_Bash_startup_example"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.1.1</span> <span>Legacy-compatible Bash startup example</span> </div> </a> <ul id="toc-Legacy-compatible_Bash_startup_example-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Operating_system_issues_in_Bash_startup" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#Operating_system_issues_in_Bash_startup"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.1.2</span> <span>Operating system issues in Bash startup</span> </div> </a> <ul id="toc-Operating_system_issues_in_Bash_startup-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Settings_and_Shell_Options" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Settings_and_Shell_Options"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.2</span> <span>Settings and Shell Options</span> </div> </a> <ul id="toc-Settings_and_Shell_Options-sublist" class="vector-toc-list"> <li id="toc-The_set_Built-in" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#The_set_Built-in"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.2.1</span> <span>The set Built-in</span> </div> </a> <ul id="toc-The_set_Built-in-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-The_shopt_Built-in" class="vector-toc-list-item vector-toc-level-4"> <a class="vector-toc-link" href="#The_shopt_Built-in"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7.2.2</span> <span>The shopt Built-in</span> </div> </a> <ul id="toc-The_shopt_Built-in-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Programmable_Completion" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Programmable_Completion"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.8</span> <span>Programmable Completion</span> </div> </a> <ul id="toc-Programmable_Completion-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Keyboard_shortcuts_with_Readline" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Keyboard_shortcuts_with_Readline"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.9</span> <span>Keyboard shortcuts with Readline</span> </div> </a> <ul id="toc-Keyboard_shortcuts_with_Readline-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Documentation" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Documentation"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Documentation</span> </div> </a> <ul id="toc-Documentation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Security_and_Vulnerabilities" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Security_and_Vulnerabilities"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Security and Vulnerabilities</span> </div> </a> <button aria-controls="toc-Security_and_Vulnerabilities-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Security and Vulnerabilities subsection</span> </button> <ul id="toc-Security_and_Vulnerabilities-sublist" class="vector-toc-list"> <li id="toc-Root_Scripts" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Root_Scripts"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Root Scripts</span> </div> </a> <ul id="toc-Root_Scripts-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Debugging" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Debugging"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Debugging</span> </div> </a> <ul id="toc-Debugging-sublist" class="vector-toc-list"> <li id="toc-Examples" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Examples"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2.1</span> <span>Examples</span> </div> </a> <ul id="toc-Examples-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Deprecated_syntax" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Deprecated_syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Deprecated syntax</span> </div> </a> <ul id="toc-Deprecated_syntax-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Shellshock" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Shellshock"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Shellshock</span> </div> </a> <ul id="toc-Shellshock-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Bug_reporting" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Bug_reporting"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.5</span> <span>Bug reporting</span> </div> </a> <ul id="toc-Bug_reporting-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>See also</span> </div> </a> <button aria-controls="toc-See_also-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle See also subsection</span> </button> <ul id="toc-See_also-sublist" class="vector-toc-list"> <li id="toc-Unix_Shells" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Unix_Shells"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Unix Shells</span> </div> </a> <ul id="toc-Unix_Shells-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Further_reading" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Further_reading"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Further reading</span> </div> </a> <ul id="toc-Further_reading-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Bash (Unix shell)</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 45 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-45" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">45 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%A8%D8%A7%D8%B4_(%D9%8A%D9%88%D9%86%D9%83%D8%B3)" title="باش (يونكس) – Arabic" lang="ar" hreflang="ar" data-title="باش (يونكس)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Bash" title="Bash – Azerbaijani" lang="az" hreflang="az" data-title="Bash" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%AC%E0%A7%8D%E0%A6%AF%E0%A6%BE%E0%A6%B6_(%E0%A6%87%E0%A6%89%E0%A6%A8%E0%A6%BF%E0%A6%95%E0%A7%8D%E0%A6%B8_%E0%A6%B6%E0%A7%87%E0%A6%B2)" title="ব্যাশ (ইউনিক্স শেল) – Bangla" lang="bn" hreflang="bn" data-title="ব্যাশ (ইউনিক্স শেল)" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/Bash" title="Bash – Belarusian" lang="be" hreflang="be" data-title="Bash" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/Bash" title="Bash – Bulgarian" lang="bg" hreflang="bg" data-title="Bash" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Bash" title="Bash – Bosnian" lang="bs" hreflang="bs" data-title="Bash" data-language-autonym="Bosanski" data-language-local-name="Bosnian" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Bash" title="Bash – Catalan" lang="ca" hreflang="ca" data-title="Bash" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Bash" title="Bash – Czech" lang="cs" hreflang="cs" data-title="Bash" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Bash" title="Bash – Danish" lang="da" hreflang="da" data-title="Bash" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Bash_(Shell)" title="Bash (Shell) – German" lang="de" hreflang="de" data-title="Bash (Shell)" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Bash" title="Bash – Estonian" lang="et" hreflang="et" data-title="Bash" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/%CE%9A%CE%AD%CE%BB%CF%85%CF%86%CE%BF%CF%82_bash" title="Κέλυφος bash – Greek" lang="el" hreflang="el" data-title="Κέλυφος bash" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Bash" title="Bash – Spanish" lang="es" hreflang="es" data-title="Bash" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Bash" title="Bash – Esperanto" lang="eo" hreflang="eo" data-title="Bash" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Bash" title="Bash – Basque" lang="eu" hreflang="eu" data-title="Bash" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%BE%D9%88%D8%B3%D8%AA%D9%87_Bash" title="پوسته Bash – Persian" lang="fa" hreflang="fa" data-title="پوسته Bash" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Bourne-Again_shell" title="Bourne-Again shell – French" lang="fr" hreflang="fr" data-title="Bourne-Again shell" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Bash" title="Bash – Galician" lang="gl" hreflang="gl" data-title="Bash" data-language-autonym="Galego" data-language-local-name="Galician" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%B0%B0%EC%8B%9C_(%EC%9C%A0%EB%8B%89%EC%8A%A4_%EC%85%B8)" title="배시 (유닉스 셸) – Korean" lang="ko" hreflang="ko" data-title="배시 (유닉스 셸)" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/Bash" title="Bash – Croatian" lang="hr" hreflang="hr" data-title="Bash" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Bash_(syel_Unix)" title="Bash (syel Unix) – Indonesian" lang="id" hreflang="id" data-title="Bash (syel Unix)" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Bash" title="Bash – Icelandic" lang="is" hreflang="is" data-title="Bash" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Bash" title="Bash – Italian" lang="it" hreflang="it" data-title="Bash" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%91%D7%90%D7%A9" title="באש – Hebrew" lang="he" hreflang="he" data-title="באש" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Bash" title="Bash – Hungarian" lang="hu" hreflang="hu" data-title="Bash" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%AC%E0%B4%BE%E0%B4%B7%E0%B5%8D" title="ബാഷ് – Malayalam" lang="ml" hreflang="ml" data-title="ബാഷ്" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Bash" title="Bash – Malay" lang="ms" hreflang="ms" data-title="Bash" data-language-autonym="Bahasa Melayu" data-language-local-name="Malay" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Bash" title="Bash – Dutch" lang="nl" hreflang="nl" data-title="Bash" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Bash" title="Bash – Japanese" lang="ja" hreflang="ja" data-title="Bash" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Bash" title="Bash – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Bash" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Bash" title="Bash – Polish" lang="pl" hreflang="pl" data-title="Bash" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Bash" title="Bash – Portuguese" lang="pt" hreflang="pt" data-title="Bash" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Bash" title="Bash – Romanian" lang="ro" hreflang="ro" data-title="Bash" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/Bash" title="Bash – Russian" lang="ru" hreflang="ru" data-title="Bash" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Bash" title="Bash – Slovak" lang="sk" hreflang="sk" data-title="Bash" data-language-autonym="Slovenčina" data-language-local-name="Slovak" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%91%D0%B0%D1%88_(%D0%88%D1%83%D0%BD%D0%B8%D0%BA%D1%81_%D1%99%D1%83%D1%81%D0%BA%D0%B0)" title="Баш (Јуникс љуска) – Serbian" lang="sr" hreflang="sr" data-title="Баш (Јуникс љуска)" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Bash" title="Bash – Serbo-Croatian" lang="sh" hreflang="sh" data-title="Bash" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="Serbo-Croatian" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Bash" title="Bash – Finnish" lang="fi" hreflang="fi" data-title="Bash" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Bash" title="Bash – Swedish" lang="sv" hreflang="sv" data-title="Bash" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B9%81%E0%B8%9A%E0%B8%8A" title="แบช – Thai" lang="th" hreflang="th" data-title="แบช" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Bash" title="Bash – Turkish" lang="tr" hreflang="tr" data-title="Bash" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/Bash" title="Bash – Ukrainian" lang="uk" hreflang="uk" data-title="Bash" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Bash" title="Bash – Vietnamese" lang="vi" hreflang="vi" data-title="Bash" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Bash" title="Bash – Cantonese" lang="yue" hreflang="yue" data-title="Bash" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Bash" title="Bash – Chinese" lang="zh" hreflang="zh" data-title="Bash" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q189248#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Bash_(Unix_shell)" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Bash_(Unix_shell)" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Bash_(Unix_shell)"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Bash_(Unix_shell)"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Bash_(Unix_shell)" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Bash_(Unix_shell)" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;oldid=1282239954" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Bash_%28Unix_shell%29&amp;id=1282239954&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBash_%28Unix_shell%29"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBash_%28Unix_shell%29"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Bash_%28Unix_shell%29&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Bash_(Unix_shell)&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:GNU_Bash" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://en.wikibooks.org/wiki/Bash_Shell_Scripting" hreflang="en"><span>Wikibooks</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiversity mw-list-item"><a href="https://en.wikiversity.org/wiki/Bash_programming" hreflang="en"><span>Wikiversity</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q189248" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">GNU replacement for the Bourne shell</div> <p class="mw-empty-elt"> </p> <style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox vevent"><caption class="infobox-title summary">Bash</caption><tbody><tr><td colspan="2" class="infobox-image logo"><span class="mw-default-size" typeof="mw:File/Frameless"><a href="/wiki/File:Gnu-bash-logo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/220px-Gnu-bash-logo.svg.png" decoding="async" width="220" height="93" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/330px-Gnu-bash-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/440px-Gnu-bash-logo.svg.png 2x" data-file-width="216" data-file-height="91" /></a></span></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Programmer" title="Programmer">Original author(s)</a></th><td class="infobox-data"><a href="/wiki/Brian_Fox_(programmer)" title="Brian Fox (programmer)">Brian Fox</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Programmer" title="Programmer">Developer(s)</a></th><td class="infobox-data">Chet Ramey</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Initial release</th><td class="infobox-data">8 June 1989<span class="noprint">&#59;&#32;35 years ago</span><span style="display:none">&#160;(<span class="bday dtstart published updated">8 June 1989</span>)</span></td></tr><tr style="display: none;"><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1257001546" /></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;">5.2.37<sup id="cite_ref-wikidata-b00870191b92885a76e9c7648a047918d2ff84a0-v18_1-0" class="reference"><a href="#cite_note-wikidata-b00870191b92885a76e9c7648a047918d2ff84a0-v18-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup>&#160;<span class="mw-valign-text-top" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q189248?uselang=en#P348" title="Edit this on Wikidata"><img alt="Edit this on Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span> / 23 September 2024</div></td></tr><tr style="display:none"><td colspan="2"> </td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Repository_(version_control)" title="Repository (version control)">Repository</a></th><td class="infobox-data"><style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style><div class="plainlist"><ul><li><span class="url"><a rel="nofollow" class="external text" href="https://git.savannah.gnu.org/gitweb/?p=bash.git">git<wbr />.savannah<wbr />.gnu<wbr />.org<wbr />/gitweb<wbr />/?p=bash<wbr />.git</a></span> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q189248#P1324" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></li></ul> </div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Written in</th><td class="infobox-data"><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Operating_system" title="Operating system">Operating system</a></th><td class="infobox-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist"> <ul><li><a href="/wiki/Linux" title="Linux">Linux</a></li> <li><a href="/wiki/Unix-like" title="Unix-like">Unix-like</a></li> <li><a href="/wiki/MacOS" title="MacOS">macOS</a></li> <li><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a></li> <li><a href="/wiki/Android_(operating_system)" title="Android (operating system)">Android</a></li> <li><a href="/wiki/Oracle_Solaris" title="Oracle Solaris">Oracle Solaris</a></li></ul> </div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Computing_platform" title="Computing platform">Platform</a></th><td class="infobox-data"><a href="/wiki/GNU" title="GNU">GNU</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Available in</th><td class="infobox-data">Multilingual (<a href="/wiki/Gettext" title="Gettext">gettext</a>)</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_categories#Categorization_approaches" title="Software categories">Type</a></th><td class="infobox-data"><a href="/wiki/Shell_(computing)" title="Shell (computing)">Shell (computing)</a>, <a href="/wiki/Unix_shell" title="Unix shell">Unix shell</a>, <a href="/wiki/Command_language" title="Command language">command language</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_license" title="Software license">License</a></th><td class="infobox-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist"> <ul><li>v.4.0+: <a href="/wiki/GNU_General_Public_License#Version_3" title="GNU General Public License">GPL-3.0-or-later</a><sup id="cite_ref-license_2-0" class="reference"><a href="#cite_note-license-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup></li> <li>v.1.11 - v.3.2: <a href="/wiki/GNU_General_Public_License#Version_2" title="GNU General Public License">GPL-2.0-or-later</a><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup></li> <li>v.0.99 - v.1.05: <a href="/wiki/GNU_General_Public_License#Version_1" title="GNU General Public License">GPL-1.0-or-later</a><sup id="cite_ref-bashfaq061_4-0" class="reference"><a href="#cite_note-bashfaq061-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup></li></ul> </div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="http://www.gnu.org/software/bash/">www<wbr />.gnu<wbr />.org<wbr />/software<wbr />/bash<wbr />/</a></span></td></tr></tbody></table> <p>In <a href="/wiki/Computer_science" title="Computer science">computing</a>, <b>Bash</b> (short for "<i>Bourne Again SHell</i>,")<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> is an <a href="/wiki/Human%E2%80%93computer_interaction" title="Human–computer interaction">interactive</a> command interpreter and command programming language developed for <a href="/wiki/UNIX" class="mw-redirect" title="UNIX">UNIX</a>-like operating systems.<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> Created in 1989<sup id="cite_ref-BashBeta_8-0" class="reference"><a href="#cite_note-BashBeta-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> by Brian Fox for the <a href="/wiki/GNU_Project" title="GNU Project">GNU Project</a>, it is supported by the <a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a> and designed as a 100% <a href="/wiki/Free_software" title="Free software">free</a> alternative for the <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a> (<code>sh</code>) and other proprietary Unix shells.<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup> </p><p>Since its inception, Bash has gained widespread adoption and is commonly used as the default <a href="/wiki/Login" title="Login">login</a> shell for numerous <a href="/wiki/Linux" title="Linux">Linux</a> distributions.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> It holds historical significance as one of the earliest programs ported to Linux by <a href="/wiki/Linus_Torvalds" title="Linus Torvalds">Linus Torvalds</a>, alongside the GNU Compiler (<a href="/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>).<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> It is available on nearly all modern operating systems, making it a versatile tool in various computing environments. </p><p>As a <a href="/wiki/Command-line_interface" title="Command-line interface">command-line interface</a> (CLI), Bash operates within a terminal emulator, or <a href="/wiki/Terminal_emulator" title="Terminal emulator">text window</a>, where users input commands to execute various tasks. It also supports the execution of commands from files, known as <a href="/wiki/Shell_script" title="Shell script">shell scripts</a>, facilitating <a href="/wiki/Automation" title="Automation">automation</a>. In keeping with Unix shell conventions, Bash incorporates a rich set of features. The <a href="/wiki/Keyword_(computer_programming)" class="mw-redirect" title="Keyword (computer programming)">keywords</a>, <a href="/wiki/Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a>, <a href="/wiki/Scope_(computer_science)#Dynamic_scoping" title="Scope (computer science)">dynamically scoped</a> variables, and other basic features of the <a href="/wiki/Formal_language" title="Formal language">language</a> are all copied from the Bourne shell, (<code>sh</code>). Other features, e.g., history, are copied from the <a href="/wiki/C_shell" title="C shell">C shell</a>, (<code>csh</code>), and the <a href="/wiki/Korn_Shell" class="mw-redirect" title="Korn Shell">Korn Shell</a>, (<code>ksh</code>). It is a <a href="/wiki/POSIX" title="POSIX">POSIX</a>-compliant shell with extensions. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="History">History</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=1" title="Edit section: History"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>While Bash was developed for UNIX and UNIX-like operating systems, such as GNU/Linux, it is also available on Android, macOS, Windows, and numerous other current and historical operating systems.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> "Although there have been attempts to create specialized shells, the Bourne shell derivatives continue to be the primary shells in use."<sup id="cite_ref-developer.ibm.com_13-0" class="reference"><a href="#cite_note-developer.ibm.com-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Timeline">Timeline</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=2" title="Edit section: Timeline"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1251242444">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><table class="plainlinks metadata ambox ambox-move" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Split-arrows.svg/50px-Split-arrows.svg.png" decoding="async" width="50" height="17" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Split-arrows.svg/75px-Split-arrows.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Split-arrows.svg/100px-Split-arrows.svg.png 2x" data-file-width="60" data-file-height="20" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">It has been suggested that subsections of this section be <a href="/wiki/Wikipedia:Splitting" title="Wikipedia:Splitting">split</a> out into articles&#32;titled <i><a href="/wiki/Unix_Shell" class="mw-redirect" title="Unix Shell">Unix Shell</a></i>, <i><a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a></i>, <i><a href="/wiki/Thompson_shell" title="Thompson shell">Thompson shell</a></i>, <i><a href="/wiki/Korn_shell" class="mw-redirect" title="Korn shell">Korn shell</a></i> and <i><a href="/wiki/C_shell" title="C shell">C shell</a></i>. (<a href="/wiki/Talk:Bash_(Unix_shell)" title="Talk:Bash (Unix shell)">Discuss</a>) <small><i>(January 2025)</i></small></div></td></tr></tbody></table> <dl> <dt class="vevent"><span class="summary">1963<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1963</span>)</span></span></dt> <dd class="description">While at MIT developing for the <a href="/wiki/Compatible_Time-Sharing_System" title="Compatible Time-Sharing System">Compatible Time-Sharing System</a> operating system, <a href="/wiki/Louis_Pouzin" title="Louis Pouzin">Louis Pouzin</a> wrote '<b><a href="/wiki/RUNCOM" title="RUNCOM">RUNCOM</a>'</b>, "a sort of shell driving the execution of command scripts, with argument substitution." He "felt that commands should be usable as building blocks for writing more commands, just like subroutine libraries."<sup id="cite_ref-Pouzin,_2000_14-0" class="reference"><a href="#cite_note-Pouzin,_2000-14"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> <ul><li>"There was a facility that would execute a bunch of commands stored in a file; it was called <code>runcom</code> for "run commands", and the file began to be called "a runcom". <code>rc</code> in Unix is a fossil from that usage."<sup id="cite_ref-Indiana_University,_2009_15-0" class="reference"><a href="#cite_note-Indiana_University,_2009-15"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">1964<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1964</span>)</span></span></dt> <dd class="description">Development began on MULTICS at MIT.</dd> <dt class="vevent"><span class="summary">1965<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1965</span>)</span></span></dt> <dd class="description"><span class="vevent">April 2, 1965<span style="display:none">&#160;(<span class="dtstart">1965-04-02</span>)</span>: <span class="summary">MIT publishes <i>"The SHELL, A Global Tool for Calling and Chaining Procedures in the System,"</i> by Louis Pouzin. The paper describes many features found in Bash.<sup id="cite_ref-Pouzin,_1965_17-0" class="reference"><a href="#cite_note-Pouzin,_1965-17"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup></span></span> <style data-mw-deduplicate="TemplateStyles:r1244412712">.mw-parser-output .templatequote{overflow:hidden;margin:1em 0;padding:0 32px}.mw-parser-output .templatequotecite{line-height:1.5em;text-align:left;margin-top:0}@media(min-width:500px){.mw-parser-output .templatequotecite{padding-left:1.6em}}</style><blockquote class="templatequote"><p>"<a href="/wiki/Christopher_Strachey" title="Christopher Strachey">Christopher Strachey</a>, a British scientist, had visited MIT about that time, and his <b>macro-generator</b> design appeared to me a very solid base for a command language, in particular the techniques for quoting and passing arguments. Without being invited on the subject, I wrote a paper explaining how the Multics command language could be designed with this objective. And I coined the word "shell" to name it."<sup id="cite_ref-Pouzin,_2000_14-1" class="reference"><a href="#cite_note-Pouzin,_2000-14"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup></p></blockquote> <ul><li>"It (i.e., the <a href="/w/index.php?title=Thompson_Shell&amp;action=edit&amp;redlink=1" class="new" title="Thompson Shell (page does not exist)">Thompson Shell</a>) was modeled after the Multics shell, developed in 1965 by American software engineer <a href="/wiki/Glenda_Schroeder" title="Glenda Schroeder">Glenda Schroeder</a>. <b>Schroeder's Multics shell</b> was itself modeled after the RUNCOM program Louis Pouzin showed to the Multics Team.</li></ul></dd> <dt class="vevent"><span class="summary">1968<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1968</span>)</span></span></dt> <dd class="description">ALGOL68 was released. The Bourne shell drew from it the concepts of program flow, closed forms (<code>if...fi</code>, <code>case...esac</code>), and completion of substitutions anywhere.<sup id="cite_ref-Bourne,_2015_18-0" class="reference"><a href="#cite_note-Bourne,_2015-18"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> These closed forms and the <code>for...done</code> and <code>while...done</code> loop were defined as "Guarded Commands" in 1976 by Dijkstra.<sup id="cite_ref-Dijkstra,_1976_19-0" class="reference"><a href="#cite_note-Dijkstra,_1976-19"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1969<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1969</span>)</span></span></dt> <dd class="description">The <a href="/wiki/Multics" title="Multics">MULTICS</a> operating system was introduced as a collaboration between MIT, GE and Bell Labs. "It is also the first to have a command processor implemented as ordinary user code – an idea later used in the Unix shell."<a href="/wiki/Multics" title="Multics">Multics Wikipage</a> It was called exec_com or ec.<sup id="cite_ref-Multicians,_Unix_20-0" class="reference"><a href="#cite_note-Multicians,_Unix-20"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Multics_History,_info_segment_on_exec_com_21-0" class="reference"><a href="#cite_note-Multics_History,_info_segment_on_exec_com-21"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1971<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1971</span>)</span></span></dt> <dd class="description">"Ken Thompson (of Bell Labs) developed the first shell for UNIX called the 'V6 shell'." Its sole purpose was to serve as an interactive shell. It supported external commands called <code>glob</code>, for pattern matching, and <code>if</code>, for conditional expressions. "The shell introduced a compact syntax for redirection (<code>&lt;</code> <code>&gt;</code> and <code>&gt;&gt;</code>) and piping (<code>|</code> or <code>^</code>) that has survived into modern shells. You can also find support for invoking sequential commands (with <code>;</code>) and asynchronous commands (with <code>&amp;</code>)."<sup id="cite_ref-developer.ibm.com_13-1" class="reference"><a href="#cite_note-developer.ibm.com-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> It also incorporated a goto command. "However, the Thompson shell was still distributed with the system as <code>osh</code>."<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1972<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1972</span>)</span></span></dt> <dd class="description">Pipelines were introduced in Unix.<sup id="cite_ref-Bourne,_2015_18-1" class="reference"><a href="#cite_note-Bourne,_2015-18"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1973<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1973</span>)</span></span></dt> <dd class="description">UNIX, originally written by Ken Thompson, Dennis Ritchie, and Brian Kernighan among others, was released by AT&amp;T (wikipedia UNIX page).</dd> <dt class="vevent"><span class="summary">1975<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1975</span>)</span></span></dt> <dd class="description"> <ul><li>"PWB Mashey shell started mid 1975."<sup id="cite_ref-Bourne,_2015_18-2" class="reference"><a href="#cite_note-Bourne,_2015-18"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup></li> <li><span class="vevent">September 1975<span style="display:none">&#160;(<span class="dtstart">1975-09</span>)</span>: <span class="summary"><a href="/wiki/Digital_Equipment_Corporation" title="Digital Equipment Corporation">Digital Equipment Corporation</a> released the VT52, which "provided a screen of 24 rows and 80 columns of text and supported all 95 ASCII characters, as well as... bi-directional scrolling" and, unlike its predecessor the VT50, lower case support (<a href="/wiki/VT52" title="VT52">VT52</a>).</span></span></li></ul></dd> <dt class="vevent"><span class="summary">1977<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1977</span>)</span></span></dt> <dd class="description"> <ul><li>The American National Standard Code for Information Interchange, or "ASCII," is published by the National Institute of Science and Technology, or "NIST,"as FIPS PUB 1-2.<sup id="cite_ref-NIST,_ASCII_Publication,_PDF_c1977_23-0" class="reference"><a href="#cite_note-NIST,_ASCII_Publication,_PDF_c1977-23"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> The ASCII character set is still with us today as a core component of writing portable shell scripts.</li> <li>"The Bourne shell was introduced.... Created by Stephen Bourne at AT&amp;T Bell Labs for V7 UNIX, [it] remains a useful shell today (in some cases, as the default root shell)." "Bourne introduced control flows, loops, and variables into scripts, providing a more functional language to interact with the operating system (both interactively and noninteractively). The shell also permitted you to use shell scripts as filters, providing integrated support for handling signals, but lacked the ability to define functions. Finally, it incorporated a number of features we use today, including command substitution (using back quotes) and HERE documents to embed preserved string literals within a script."<sup id="cite_ref-developer.ibm.com_13-2" class="reference"><a href="#cite_note-developer.ibm.com-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> It used the -eq, -ne, -lt style of test operators</li> <li>The <a href="/wiki/KornShell" title="KornShell">Korn Shell</a> was introduced at around the same time as was the Bourne shell.</li> <li><a href="/wiki/OpenVMS" title="OpenVMS">OpenVMS</a> - Initial Release.<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup> It included Bash at some later point.</li></ul></dd> <dt class="vevent"><span class="summary">1978<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1978</span>)</span></span></dt> <dd class="description"> <ul><li><a href="/wiki/C_shell" title="C shell">C shell</a> - Initial release. Created by Bill Joy while he was at Berkeley, and released with 2BSD. "A useful feature introduced by Bill Joy in the C shell was command history. This feature maintained a history of the previously executed commands and allowed the user to review and easily select previous commands to execute. For example, typing the command history would show the previously executed commands. The up and down arrow keys could be used to select a command, or the previous command could be executed using&#160;!!. It's also possible to refer to arguments of the prior command; for example,&#160;!* refers to all arguments of the prior command, where&#160;!$ refers to the last argument of the prior command."<sup id="cite_ref-developer.ibm.com_13-3" class="reference"><a href="#cite_note-developer.ibm.com-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> "csh, tcsh, zsh, ash, and scsh are all released under the BSD or a BSD-like license."</li> <li><span class="vevent">August 1978<span style="display:none">&#160;(<span class="dtstart">1978-08</span>)</span>: <span class="summary"><a href="/wiki/Digital_Equipment_Corporation" title="Digital Equipment Corporation">Digital Equipment Corporation</a> introduced the <a href="/wiki/VT100" title="VT100">VT100</a>.</span></span></li></ul></dd> <dt class="vevent"><span class="summary">1983<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1983</span>)</span></span></dt> <dd class="description"> <ul><li>The TENEX C shell "introduced file name and command completion in addition to command-line editing features. The <a href="/wiki/Tcsh" title="Tcsh">tcsh</a> was developed by Ken Greer at Carnegie Mellon University."<sup id="cite_ref-developer.ibm.com_13-4" class="reference"><a href="#cite_note-developer.ibm.com-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> The shebang, or hashbang symbol was available in tcsh. Also, positional parameters as the argv array including argv[1], the $0 shell variable as argv[0], the Count of Indices parameter expansion $#var, the -d and -x operators of a testing syntax regarding directory and executability tests, respectively, the&#160;! negate symbol, a looping construct in the foreach command, the set, echo and exit commands, variable assignment and arithmetic contexts "@ count = $count + 1", and familiar double quoting rules.</li> <li><a href="/wiki/Novell_NetWare" class="mw-redirect" title="Novell NetWare">Novell NetWare</a> - Initial release. It included Bash at some later point.</li></ul></dd> <dt class="vevent"><span class="summary">1984<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1984</span>)</span></span></dt> <dd class="description">"The IEEE POSIX work started in 1984 as an outgrowth of work initiated in the /usr/group organization to build a standard on the two variations of UNIX at the time - version 6 and BSD (Berkeley)."<sup id="cite_ref-POSIX_Impact_25-0" class="reference"><a href="#cite_note-POSIX_Impact-25"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1986<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1986</span>)</span></span></dt> <dd class="description">The documents which would become known as "POSIX" started out as a trial use standard by the IEEE. By some it is considered a de facto standard.<sup id="cite_ref-Usenix_&#39;;login:&#39;_Feb_2007_26-0" class="reference"><a href="#cite_note-Usenix_&#39;;login:&#39;_Feb_2007-26"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1988<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1988</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">January 10, 1988<span style="display:none">&#160;(<span class="dtstart">1988-01-10</span>)</span>: <span class="summary"><a href="/wiki/Brian_Fox_(computer_programmer)" class="mw-redirect" title="Brian Fox (computer programmer)">Brian Fox</a> began <a href="/wiki/Computer_programming" title="Computer programming">coding</a> Bash<sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">&#91;</span>27<span class="cite-bracket">&#93;</span></a></sup> after <a href="/wiki/Richard_Stallman" title="Richard Stallman">Richard Stallman</a> became dissatisfied with the lack of progress being made by a prior developer.<sup id="cite_ref-GNUBSD_28-0" class="reference"><a href="#cite_note-GNUBSD-28"><span class="cite-bracket">&#91;</span>28<span class="cite-bracket">&#93;</span></a></sup> Stallman and the <a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">FSF</a> considered a free shell that could run existing shell scripts so strategic to a completely free system built from BSD and GNU code that this was one of the few projects they funded themselves. Fox undertook the work as an employee of FSF.<sup id="cite_ref-GNUBSD_28-1" class="reference"><a href="#cite_note-GNUBSD-28"><span class="cite-bracket">&#91;</span>28<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>"The first version of the IEEE Std 1003 was published in 1988 with the reference 'IEEE IX'," but these standards would not specify requirements for a "command interpreter," or "Shell and Utilities," until later. "At the suggestion of Richard Stallman, this was changed to POSIX for 'portable operating system interface'."<sup id="cite_ref-POSIX_Impact_25-1" class="reference"><a href="#cite_note-POSIX_Impact-25"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-stallman.org_posix_30-0" class="reference"><a href="#cite_note-stallman.org_posix-30"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup> The POSIX "interface enables application writers to write portable applications — it was developed with that goal in mind."<sup id="cite_ref-POSIX_Backgrounder_31-0" class="reference"><a href="#cite_note-POSIX_Backgrounder-31"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">1989<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1989</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">May 30, 1989<span style="display:none">&#160;(<span class="dtstart">1989-05-30</span>)</span>: <span class="summary">Kenneth Almquist's ash shell - Initial release.<sup id="cite_ref-Mascheck,_Ash_Variants_32-0" class="reference"><a href="#cite_note-Mascheck,_Ash_Variants-32"><span class="cite-bracket">&#91;</span>32<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li><span class="vevent">June 8, 1989<span style="display:none">&#160;(<span class="dtstart">1989-06-08</span>)</span>: <span class="summary">Fox released Bash as a beta, version 0.99.<sup id="cite_ref-BashBeta_8-1" class="reference"><a href="#cite_note-BashBeta-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> The license was GPL-1.0-or-later. "In addition to supporting backward-compatibility for scripting, Bash has incorporated features from the Korn and C shells. You'll find command history, command-line editing, a directory stack (pushd and popd), many useful environment variables, command completion, and more."<sup id="cite_ref-Evolution_of_shells_in_Linux_33-0" class="reference"><a href="#cite_note-Evolution_of_shells_in_Linux-33"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup> Eventually it supported "regular expressions (similar to Perl), and associative arrays."</span></span></li> <li>Microsoft/IBM <a href="/wiki/DOS" title="DOS">DOS</a> via the <a href="/wiki/DJGPP" title="DJGPP">DJGPP</a> project - Initial release.</li></ul></dd> <dt class="vevent"><span class="summary">1992<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1992</span>)</span></span></dt> <dd class="description"> <ul><li>POSIX.2: Shell and Utilities (IEEE Std 1003.2-1992) was published.</li> <li>Brian Fox remained the primary maintainer until sometime between mid-1992<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">&#91;</span>34<span class="cite-bracket">&#93;</span></a></sup> and mid-1994.<sup id="cite_ref-Bourne_shell_grammar_35-0" class="reference"><a href="#cite_note-Bourne_shell_grammar-35"><span class="cite-bracket">&#91;</span>35<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-36" class="reference"><a href="#cite_note-36"><span class="cite-bracket">&#91;</span>36<span class="cite-bracket">&#93;</span></a></sup> His responsibility was then transitioned to another early contributor, Chet Ramey.<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">&#91;</span>37<span class="cite-bracket">&#93;</span></a></sup> Since then, Bash has become the most popular default interactive shell among the major GNU/Linux distributions, such as <a href="/wiki/Fedora_Linux" title="Fedora Linux">Fedora</a>, <a href="/wiki/Debian" title="Debian">Debian</a>, and <a href="/wiki/OpenSUSE" title="OpenSUSE">openSUSE</a>, as well as among their derivatives and competitors.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">&#91;</span>38<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">&#91;</span>39<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">1992<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1992</span>)</span></span></dt> <dd class="description">"The first eight entries in (POSIX) Portable Character Set are defined in the ISO/IEC 6429:1992 standard." They are null, alert, backspace, tab, carriage-return, newline, vertical-tab and form-feed.<sup id="cite_ref-Portable_Character_Set_40-0" class="reference"><a href="#cite_note-Portable_Character_Set-40"><span class="cite-bracket">&#91;</span>40<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">1994<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1994</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">January 26, 1994<span style="display:none">&#160;(<span class="dtstart">1994-01-26</span>)</span>: <span class="summary">Debian - initial release. Bash is the default interactive and non-interactive shell.<sup id="cite_ref-Debian_Wiki:_Shell_41-0" class="reference"><a href="#cite_note-Debian_Wiki:_Shell-41"><span class="cite-bracket">&#91;</span>41<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">1995<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1995</span>)</span></span></dt> <dd class="description"> <ul><li><a href="/wiki/Cygwin" title="Cygwin">Cygwin</a> - Initial release.</li> <li><a href="/wiki/BeOS" title="BeOS">BeOS</a> - Initial release.<sup id="cite_ref-Forbes,_A_Desktop_Alternative_42-0" class="reference"><a href="#cite_note-Forbes,_A_Desktop_Alternative-42"><span class="cite-bracket">&#91;</span>42<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-43" class="reference"><a href="#cite_note-43"><span class="cite-bracket">&#91;</span>43<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">1996<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1996</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">December 31, 1996<span style="display:none">&#160;(<span class="dtstart">1996-12-31</span>)</span>: <span class="summary">Chet Ramey released bash 2.0. The license was GPL-2.0-or-later.</span></span></li></ul></dd> <dt class="vevent"><span class="summary">1997<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1997</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">June 5, 1997<span style="display:none">&#160;(<span class="dtstart">1997-06-05</span>)</span>: <span class="summary">Bash 2.01 is released.</span></span></li> <li>Almquist shell, ash, ported from NetBSD to Debian by Herbert Xu.</li></ul></dd> <dt class="vevent"><span class="summary">1998<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1998</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">April 18, 1998<span style="display:none">&#160;(<span class="dtstart">1998-04-18</span>)</span>: <span class="summary">Bash 2.02 is released.</span></span></li> <li><a href="/wiki/MinGW" title="MinGW">MinGW</a> (32-bit) - Initial release.</li> <li>A group of Standards Committees from the IEEE, the Open Group and the ISO/IEC began working on the Single UNIX Specification v 3; they together became known as the Austin Group. A Technical Standard for Shell and Utilities was created in The Open Group Base Specifications, Issue 6, which is itself a part of the Single UNIX Specification v 3.<sup id="cite_ref-Single_UNIX_Specification_v_3_-_Overview_44-0" class="reference"><a href="#cite_note-Single_UNIX_Specification_v_3_-_Overview-44"><span class="cite-bracket">&#91;</span>44<span class="cite-bracket">&#93;</span></a></sup> A focus of their work was to "collect into a single document" practices which had been proven to work in industry and academia while making "minimal changes to existing application code."<sup id="cite_ref-POSIX_Backgrounder_31-1" class="reference"><a href="#cite_note-POSIX_Backgrounder-31"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">1999<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">1999</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">February 19, 1999<span style="display:none">&#160;(<span class="dtstart">1999-02-19</span>)</span>: <span class="summary">Bash 2.03 is released.</span></span></li></ul></dd> <dt class="vevent"><span class="summary">2000<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2000</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">March 21, 2000<span style="display:none">&#160;(<span class="dtstart">2000-03-21</span>)</span>: <span class="summary">Bash 2.04 is released.</span></span></li> <li>The Korn shell is released as open source under the Common Public License.</li> <li>"The rest of the characters" in the POSIX Portable Character Set "are defined in the ISO/IEC 10646-1:2000 standard." They comprise the remainder of the characters on a U.S. qwerty keyboard from &lt;space&gt; to &lt;tilde&gt;.<sup id="cite_ref-Portable_Character_Set_40-1" class="reference"><a href="#cite_note-Portable_Character_Set-40"><span class="cite-bracket">&#91;</span>40<span class="cite-bracket">&#93;</span></a></sup></li> <li>BeOS - Final release</li> <li>Darwin OS - Initial release. Bash is one of the available shells.<sup id="cite_ref-Evolution_of_shells_in_Linux_33-1" class="reference"><a href="#cite_note-Evolution_of_shells_in_Linux-33"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup></li> <li><span class="vevent">September 14, 2000<span style="display:none">&#160;(<span class="dtstart">2000-09-14</span>)</span>: <span class="summary">Bug-bash mailing list exists.<sup id="cite_ref-45" class="reference"><a href="#cite_note-45"><span class="cite-bracket">&#91;</span>45<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">2001<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2001</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">April 9, 2001<span style="display:none">&#160;(<span class="dtstart">2001-04-09</span>)</span>: <span class="summary">Bash 2.05 released.<sup id="cite_ref-46" class="reference"><a href="#cite_note-46"><span class="cite-bracket">&#91;</span>46<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>A POSIX-2001 Standard is published which includes a "Commands and Utilities" section. The Austin Group and the Single Unix Specification is involved.<sup id="cite_ref-Single_UNIX_Specification_v_3_-_Overview_44-1" class="reference"><a href="#cite_note-Single_UNIX_Specification_v_3_-_Overview-44"><span class="cite-bracket">&#91;</span>44<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2002<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2002</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">September 2002<span style="display:none">&#160;(<span class="dtstart">2002-09</span>)</span>: <span class="summary">In Debian, version 0.4.1 of ash was renamed to dash.</span></span></li></ul></dd> <dt class="vevent"><span class="summary">2003<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2003</span>)</span></span></dt> <dd class="description"> <ul><li>Bash became the default shell on Apple's operating systems (i.e., MacOS) starting with OS X 10.3 Panther.<sup id="cite_ref-47" class="reference"><a href="#cite_note-47"><span class="cite-bracket">&#91;</span>47<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-48" class="reference"><a href="#cite_note-48"><span class="cite-bracket">&#91;</span>48<span class="cite-bracket">&#93;</span></a></sup> It was available on OS X 10.2 Jaguar as well where the default shell was tcsh.</li> <li>A POSIX-2003 Shell and Utilities standard is published by the IEEE. "This is a component product standard for the mandatory shell and utilities related functionality;" a POSIX Certification Program exists.<sup id="cite_ref-POSIX_FAQ_v_1.18_49-0" class="reference"><a href="#cite_note-POSIX_FAQ_v_1.18-49"><span class="cite-bracket">&#91;</span>49<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2004<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2004</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">July 27, 2004<span style="display:none">&#160;(<span class="dtstart">2004-07-27</span>)</span>: <span class="summary">Bash 3.0 is released.<sup id="cite_ref-50" class="reference"><a href="#cite_note-50"><span class="cite-bracket">&#91;</span>50<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>POSIX-2004 is published.<sup id="cite_ref-POSIX-2004_51-0" class="reference"><a href="#cite_note-POSIX-2004-51"><span class="cite-bracket">&#91;</span>51<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2005<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2005</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">December 9, 2005<span style="display:none">&#160;(<span class="dtstart">2005-12-09</span>)</span>: <span class="summary">Bash 3.1 is released.<sup id="cite_ref-52" class="reference"><a href="#cite_note-52"><span class="cite-bracket">&#91;</span>52<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li><a href="/wiki/Mingw-w64" title="Mingw-w64">Mingw-w64</a> — Initial release.</li></ul></dd> <dt class="vevent"><span class="summary">2006<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2006</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">October 12, 2006<span style="display:none">&#160;(<span class="dtstart">2006-10-12</span>)</span>: <span class="summary">Bash 3.2 released.<sup id="cite_ref-53" class="reference"><a href="#cite_note-53"><span class="cite-bracket">&#91;</span>53<span class="cite-bracket">&#93;</span></a></sup> The license was GPL-2.0-or-later.</span></span></li> <li>Ubuntu adopts dash as its default shell.</li></ul></dd> <dt class="vevent"><span class="summary"> 2008<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2008</span>)</span> </span></dt> <dd class="description">POSIX-2008 is released by the IEEE. "This standard defines a standard source level interface to the shell and utility functionality required by application programs, including shell scripts."<sup id="cite_ref-POSIX_FAQ_v_1.18_49-1" class="reference"><a href="#cite_note-POSIX_FAQ_v_1.18-49"><span class="cite-bracket">&#91;</span>49<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary"> 2009<span style="display:none">&#160;(<span class="dtstart">2009</span>)</span> </span></dt> <dd class="description"> <ul><li><span class="vevent">February 20, 2009<span style="display:none">&#160;(<span class="dtstart">2009-02-20</span>)</span>: <span class="summary">Bash 4.0 is released<sup id="cite_ref-54" class="reference"><a href="#cite_note-54"><span class="cite-bracket">&#91;</span>54<span class="cite-bracket">&#93;</span></a></sup> Its license is GPL-3.0-or-later.</span></span></li> <li>Novell Netware - final release</li> <li><span class="vevent">September 14, 2009<span style="display:none">&#160;(<span class="dtstart">2009-09-14</span>)</span>: <span class="summary"><a href="/wiki/Haiku_(operating_system)" title="Haiku (operating system)">Haiku (operating system)</a> - Initial release.<sup id="cite_ref-55" class="reference"><a href="#cite_note-55"><span class="cite-bracket">&#91;</span>55<span class="cite-bracket">&#93;</span></a></sup> "Haiku's interface to the shell, by default," is bash.<sup id="cite_ref-56" class="reference"><a href="#cite_note-56"><span class="cite-bracket">&#91;</span>56<span class="cite-bracket">&#93;</span></a></sup> As of September 13, 2024, Haiku remains in beta.<sup id="cite_ref-57" class="reference"><a href="#cite_note-57"><span class="cite-bracket">&#91;</span>57<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary"> 2010<span style="display:none">&#160;(<span class="dtstart">2010</span>)</span> </span></dt> <dd class="description"> <ul><li><span class="vevent">January 2, 2010<span style="display:none">&#160;(<span class="dtstart">2010-01-02</span>)</span>: <span class="summary">Bash 4.1 is released.<sup id="cite_ref-58" class="reference"><a href="#cite_note-58"><span class="cite-bracket">&#91;</span>58<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary"> 2011<span style="display:none">&#160;(<span class="dtstart">2011</span>)</span> </span></dt> <dd class="description"> <ul><li><span class="vevent">February 6, 2011<span style="display:none">&#160;(<span class="dtstart">2011-02-06</span>)</span>: <span class="summary">Debian Lenny is released with Bash as its default interactive shell, and dash as its default non-interactive shell.<sup id="cite_ref-59" class="reference"><a href="#cite_note-59"><span class="cite-bracket">&#91;</span>59<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li><span class="vevent">February 14, 2011<span style="display:none">&#160;(<span class="dtstart">2011-02-14</span>)</span>: <span class="summary">Bash 4.2 is released.<sup id="cite_ref-60" class="reference"><a href="#cite_note-60"><span class="cite-bracket">&#91;</span>60<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary"> 2012<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2012</span>)</span> </span></dt> <dd class="description">On <a href="/wiki/Solaris_(operating_system)" class="mw-redirect" title="Solaris (operating system)">Solaris</a> 11, "the default user shell is the Bourne-again (bash) shell."<sup id="cite_ref-61" class="reference"><a href="#cite_note-61"><span class="cite-bracket">&#91;</span>61<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary"> 2013<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2013</span>)</span> </span></dt> <dd class="description">POSIX-2013 is released by the IEEE.<sup id="cite_ref-62" class="reference"><a href="#cite_note-62"><span class="cite-bracket">&#91;</span>62<span class="cite-bracket">&#93;</span></a></sup></dd> <dt class="vevent"><span class="summary">2014<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2014</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">February 27, 2014<span style="display:none">&#160;(<span class="dtstart">2014-02-27</span>)</span>: <span class="summary">Bash 4.3 is released.<sup id="cite_ref-63" class="reference"><a href="#cite_note-63"><span class="cite-bracket">&#91;</span>63<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li><span class="vevent">8 September 2014<span style="display:none">&#160;(<span class="dtstart">2014-09-08</span>)</span>: <span class="summary"><a href="/wiki/Shellshock_(software_bug)" title="Shellshock (software bug)">Shellshock (software bug)</a>.<sup id="cite_ref-Mitre,_CVE-2014-6271_64-0" class="reference"><a href="#cite_note-Mitre,_CVE-2014-6271-64"><span class="cite-bracket">&#91;</span>64<span class="cite-bracket">&#93;</span></a></sup> Patches to fix the bugs were made available soon after the bugs were identified.<sup id="cite_ref-Bug-bash,_Bash_3.0_Official_Patch_1_65-0" class="reference"><a href="#cite_note-Bug-bash,_Bash_3.0_Official_Patch_1-65"><span class="cite-bracket">&#91;</span>65<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">2015<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2015</span>)</span></span></dt> <dd class="description"><a href="/wiki/Termux" title="Termux">Termux</a> and other terminal emulation applications provide availability of Bash on <a href="/wiki/Android_(operating_system)" title="Android (operating system)">Android</a>.</dd> <dt class="vevent"><span class="summary">2016<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2016</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">April 26, 2016<span style="display:none">&#160;(<span class="dtstart">2016-04-26</span>)</span>: <span class="summary"><a href="/wiki/Windows_10" title="Windows 10">Windows 10</a> Insider Preview Build 14332 supports installation of Bash on Ubuntu in the newly released <a href="/wiki/Windows_Subsystem_for_Linux" title="Windows Subsystem for Linux">Windows Subsystem for Linux</a>.<sup id="cite_ref-Windows_10_Insider_Preview_Build_14332_66-0" class="reference"><a href="#cite_note-Windows_10_Insider_Preview_Build_14332-66"><span class="cite-bracket">&#91;</span>66<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-67" class="reference"><a href="#cite_note-67"><span class="cite-bracket">&#91;</span>67<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>POSIX-2016 is released by the IEEE.<sup id="cite_ref-POSIX-2016_68-0" class="reference"><a href="#cite_note-POSIX-2016-68"><span class="cite-bracket">&#91;</span>68<span class="cite-bracket">&#93;</span></a></sup></li> <li><span class="vevent">September 15, 2016<span style="display:none">&#160;(<span class="dtstart">2016-09-15</span>)</span>: <span class="summary">Bash 4.4 is released.</span></span></li></ul></dd> <dt class="vevent"><span class="summary">2017<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2017</span>)</span></span></dt> <dd class="description"> <ul><li>A new version of the POSIX Standard is released.<sup id="cite_ref-POSIX_FAQ_v_1.18_49-2" class="reference"><a href="#cite_note-POSIX_FAQ_v_1.18-49"><span class="cite-bracket">&#91;</span>49<span class="cite-bracket">&#93;</span></a></sup></li> <li>Some other current operating systems which carry Bash include and <a href="/wiki/ArcaOS" title="ArcaOS">ArcaOS</a>.<sup id="cite_ref-69" class="reference"><a href="#cite_note-69"><span class="cite-bracket">&#91;</span>69<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2018<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2018</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">January 31, 2018<span style="display:none">&#160;(<span class="dtstart">2018-01-31</span>)</span>: <span class="summary">The IEEE published the POSIX 2017 Standard.<sup id="cite_ref-POSIX-2018_70-0" class="reference"><a href="#cite_note-POSIX-2018-70"><span class="cite-bracket">&#91;</span>70<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>Apple packaged Bash as their default interactive shell through until macOS Mojave (c.2018). However, for explicit licensing reasons with <a href="/wiki/MacOS_Catalina" title="MacOS Catalina">Catalina</a><sup id="cite_ref-scriptingosx.com,_Moving_to_Zsh_71-0" class="reference"><a href="#cite_note-scriptingosx.com,_Moving_to_Zsh-71"><span class="cite-bracket">&#91;</span>71<span class="cite-bracket">&#93;</span></a></sup> (c.2019), Apple replaced its default shell, Bash version 3.2 (c.2006), with <a href="/wiki/Z_Shell" class="mw-redirect" title="Z Shell">Z Shell</a> version 5.7 (c.2019).<sup id="cite_ref-Apple_Support_-_Use_zsh_as_the_default_shell_on_your_Mac_72-0" class="reference"><a href="#cite_note-Apple_Support_-_Use_zsh_as_the_default_shell_on_your_Mac-72"><span class="cite-bracket">&#91;</span>72<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Verge_-_Apple_replaces_bash_with_zsh..._73-0" class="reference"><a href="#cite_note-Verge_-_Apple_replaces_bash_with_zsh...-73"><span class="cite-bracket">&#91;</span>73<span class="cite-bracket">&#93;</span></a></sup> "The bash binary bundled with macOS has been stuck on version 3.2 for a long time now. bash v4 was released in 2009 and bash v5 in January 2019. The reason Apple has not switched to these newer versions is that they are licensed with GPL v3. bash v3 is still GPL v2."<sup id="cite_ref-scriptingosx.com,_Moving_to_Zsh_71-1" class="reference"><a href="#cite_note-scriptingosx.com,_Moving_to_Zsh-71"><span class="cite-bracket">&#91;</span>71<span class="cite-bracket">&#93;</span></a></sup> Zsh uses a more permissive license.<sup id="cite_ref-The_Next_Web_-_Why_Does_MacOS_Catalina_Use_zsh..._74-0" class="reference"><a href="#cite_note-The_Next_Web_-_Why_Does_MacOS_Catalina_Use_zsh...-74"><span class="cite-bracket">&#91;</span>74<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2019<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2019</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">January 7, 2019<span style="display:none">&#160;(<span class="dtstart">2019-01-07</span>)</span>: <span class="summary">Bash 5.0 is released.<sup id="cite_ref-75" class="reference"><a href="#cite_note-75"><span class="cite-bracket">&#91;</span>75<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">2020<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2020</span>)</span></span></dt> <dd class="description"> <ul><li>With release 2020.4, Kali Linux switched to zsh as its default shell for desktop images, but its ARM, containers, NetHunter and WSL images still use Bash.<sup id="cite_ref-76" class="reference"><a href="#cite_note-76"><span class="cite-bracket">&#91;</span>76<span class="cite-bracket">&#93;</span></a></sup></li> <li><span class="vevent">December 7, 2020<span style="display:none">&#160;(<span class="dtstart">2020-12-07</span>)</span>: <span class="summary">Bash 5.1 is released.<sup id="cite_ref-Bash-5.1_release_available_77-0" class="reference"><a href="#cite_note-Bash-5.1_release_available-77"><span class="cite-bracket">&#91;</span>77<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">2022<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2022</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">September 26, 2022<span style="display:none">&#160;(<span class="dtstart">2022-09-26</span>)</span>: <span class="summary">Bash 5.2 is released.<sup id="cite_ref-78" class="reference"><a href="#cite_note-78"><span class="cite-bracket">&#91;</span>78<span class="cite-bracket">&#93;</span></a></sup></span></span></li> <li>"At this point, 2022, a significant number of POSIX compatible or influenced systems exist in servers, cloud computing centers, high performance computers, Apple systems (initially BSD variations), and many cell phone systems. The number of devices measuring into the billions."<sup id="cite_ref-POSIX_Impact_25-2" class="reference"><a href="#cite_note-POSIX_Impact-25"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup></li></ul></dd> <dt class="vevent"><span class="summary">2023<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2023</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">September 18, 2023<span style="display:none">&#160;(<span class="dtstart">2023-09-18</span>)</span>: <span class="summary"><a href="/wiki/Windows_Subsystem_for_Linux" title="Windows Subsystem for Linux">Windows Subsystem for Linux</a> v 2.0.0 is released for <a href="/wiki/Windows_11" title="Windows 11">Windows 11</a>.<sup id="cite_ref-Github:_WSL_2.0.0_79-0" class="reference"><a href="#cite_note-Github:_WSL_2.0.0-79"><span class="cite-bracket">&#91;</span>79<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-How_to_Install_WSL_on_Windows_11_80-0" class="reference"><a href="#cite_note-How_to_Install_WSL_on_Windows_11-80"><span class="cite-bracket">&#91;</span>80<span class="cite-bracket">&#93;</span></a></sup></span></span></li></ul></dd> <dt class="vevent"><span class="summary">2024<span style="display: none;">&#160;(<span class="bday dtstart published updated itvstart">2024</span>)</span></span></dt> <dd class="description"> <ul><li><span class="vevent">June 14, 2024<span style="display:none">&#160;(<span class="dtstart">2024-06-14</span>)</span>: <span class="summary">POSIX-2024 is published by the IEEE.</span></span></li></ul></dd> </dl> <div class="mw-heading mw-heading2"><h2 id="Features">Features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=3" title="Edit section: Features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="List_of_Short_Descriptions">List of Short Descriptions</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=4" title="Edit section: List of Short Descriptions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1251242444" /><table class="box-Prose plainlinks metadata ambox ambox-style ambox-Prose" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/f2/Edit-clear.svg/40px-Edit-clear.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/f2/Edit-clear.svg/60px-Edit-clear.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/f2/Edit-clear.svg/80px-Edit-clear.svg.png 2x" data-file-width="48" data-file-height="48" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">This article <b>is in <a href="/wiki/MOS:LIST" class="mw-redirect" title="MOS:LIST">list</a> format but may read better as <a href="/wiki/MOS:PROSE" class="mw-redirect" title="MOS:PROSE">prose</a></b>.<span class="hide-when-compact"> You can help by <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Bash_(Unix_shell)&amp;action=edit">converting this article</a>, if appropriate. <a href="/wiki/Help:Editing" title="Help:Editing">Editing help</a> is available.</span> <span class="date-container"><i>(<span class="date">January 2025</span>)</i></span></div></td></tr></tbody></table> <p>As a <a href="/wiki/Command-line_interface" title="Command-line interface">command processor</a>, Bash operates within a <a href="/wiki/Terminal_emulator" title="Terminal emulator">text window</a> where users input commands to execute various tasks. It also supports the execution of commands from files, known as <a href="/wiki/Shell_script" title="Shell script">shell scripts</a>, facilitating <a href="/wiki/Automation" title="Automation">automation</a>. In keeping with <a href="/wiki/Unix_shell" title="Unix shell">Unix shell</a> conventions, Bash incorporates a rich set of features, including: </p> <ul><li>A <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/index.html">User Manual</a> provided by the GNU Project, also available at <code>info bash</code>, and a technical manual available at <code>man bash</code>.</li> <li><a href="/wiki/Function_(computer_programming)" title="Function (computer programming)">Invocation</a> as a... <ul><li><a href="/wiki/Interactivity" title="Interactivity">Interactive</a> shell,</li> <li>Non-interactive shell, or</li> <li>Login shell;</li></ul></li> <li>A <a href="/wiki/Command-line_interface" title="Command-line interface">command-line interface</a>;</li> <li><a href="/wiki/Exit_status" title="Exit status">Exit status</a> codes;</li> <li><a href="/wiki/Control_flow" title="Control flow">Control structures</a> for <ul><li><a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">Condition testing</a>, <ul><li><code>if</code>, <code>case</code>, <code>select</code>,</li> <li>logical AND (<code>&amp;&amp;</code>) and OR (<code>||</code>), and</li></ul></li> <li><a href="/wiki/Iteration" title="Iteration">Iteration</a>: <ul><li><code>for</code>, <code>while</code>, <code>until</code> loops, and</li> <li>Arithmetic C-style loop: <code>for ((</code>;</li></ul></li></ul></li> <li>Syntaxes for Boolean testing of file attributes, string and integer values, etc.: <ul><li>Traditional <code>test</code> command,</li> <li>Traditional single bracket test: <code>[</code>,</li> <li>Modern double bracket test: <code> &#91;&#91; ... &#93;&#93;</code>, which includes advanced features: <ul><li>Extended <a href="/wiki/Regular_expression" title="Regular expression">regular expression</a> and extglob matching</li> <li>Lexicographic sorting with <code>&lt;</code> and <code>&gt;</code>;</li></ul></li></ul></li> <li><a href="/wiki/Unix" title="Unix">UNIX</a>-style <a href="/wiki/Pipeline_(Unix)" title="Pipeline (Unix)">pipelines</a>: <code>|</code>;</li> <li><a href="/wiki/Child_process" title="Child process">Subshells</a>: <code>( ... )</code>;</li> <li><a href="/wiki/Signal_(IPC)" title="Signal (IPC)">Signaling</a> as a means of <a href="/wiki/Inter-process_communication" title="Inter-process communication">inter-process communication</a> using the <code>trap</code> builtin;</li> <li>Asynchronous execution, i.e., <a href="/wiki/Job_(computing)" title="Job (computing)">Jobs</a> and <a href="/wiki/Job_control_(Unix)" title="Job control (Unix)">job control</a>: <ul><li><code>job_spec &amp;</code> where <code>job_spec</code> can be one of: <ul><li>A full commandline: <code>&lt;command_name&gt; &lt;options&gt; &lt;operands&gt; &lt;arguments&gt; &amp;</code>, or</li> <li>A job control identifier as denoted by a leading percent symbol: <code>%1 &amp;</code>;</li></ul></li></ul></li> <li>A shell <a href="/wiki/Porting" title="Porting">portability</a> mode where command lines can be interpreted in conformance with the <a href="/wiki/POSIX_terminal_interface" title="POSIX terminal interface">POSIX</a> standard;</li> <li>Command parsing: <ul><li>Comments are ignored: <ul><li>Bourne-style <code>#</code> hashtag comments, and</li> <li>Thompson-style <code>:</code> colon comments;</li></ul></li> <li>Commands are parsed one line at a time: <ul><li>Control structures are honored, and</li> <li>Backslash <code>\</code> escapes are also honored at the ends of lines;</li></ul></li> <li>Split into words (i.e., <a href="/wiki/Text_segmentation" title="Text segmentation">word splitting</a>) according to <a href="/wiki/String_literal" title="String literal">quoting</a> rules, <ul><li>Including ANSI-C quoting <code>$'...'</code>;</li></ul></li> <li>Seven kinds of expansions are performed in the following order on the resulting string: <ul><li>(Step 1) Brace expansion <code>kernel{-headers}</code>,</li> <li>(Step 2) Tilde expansion <code>~</code>,</li> <li>(Step 3) In a left-to-right fashion: <ul><li><a href="/wiki/Parameter_(computer_programming)" title="Parameter (computer programming)">Parameter</a> and <a href="/wiki/Variable_(computer_science)" title="Variable (computer science)">variable</a> expansion <code>$foo</code> or <code>${bar}</code>, including <ul><li><a href="/wiki/Scope_(computer_science)#Dynamic_scoping" title="Scope (computer science)">Dynamically scoped</a> variables,</li> <li>Indexed <a href="/wiki/Array_(data_type)" title="Array (data type)">arrays</a> of unlimited size,</li> <li><a href="/wiki/Associative_array" title="Associative array">Associative arrays</a> via <code>declare -A</code>, and</li> <li>Expansion syntaxes which can perform some tasks more quickly than external utilities, including, among others: <ul><li>Pattern Substitution <ul><li><code>${foo//x/y}</code> for <code>sed 's/x/y/g'</code>,</li></ul></li> <li>Remove Matching Prefix or Suffix Pattern <ul><li><code>${bar##[a-zA-Z0-9]*}</code> for <code>cut -c8-</code>,</li></ul></li> <li>Print Array Keys <ul><li><code>${!array[@]}</code>, and</li></ul></li> <li>Display Error if Null or Unset <ul><li><code>${var:?error message}</code>,</li></ul></li></ul></li></ul></li> <li><a href="/wiki/Command_substitution" title="Command substitution">Command substitution</a>: <code>$( ... )</code>,</li> <li><a href="/wiki/Process_substitution" title="Process substitution">Process substitution</a>, <code>&lt;()</code> or <code>&gt;()</code>, when a system supports it:</li> <li>Arithmetic expansion, <code>(( ... ))</code> or <code>$(( ... ))</code>, including <ul><li>Integer <a href="/wiki/Arithmetic" title="Arithmetic">arithmetic</a> in any <a href="/wiki/Radix" title="Radix">base</a> from two to sixty-four, although</li> <li><a href="/wiki/Floating-point_arithmetic" title="Floating-point arithmetic">Floating-point arithmetic</a> is not available from within the shell itself (for this functionality, see current versions of <a href="/wiki/Bc_(programming_language)" title="Bc (programming language)"><code>bc</code></a> and <a href="/wiki/AWK" title="AWK"><code>awk</code></a>, among others),</li></ul></li></ul></li> <li>(Step 4) <a href="/wiki/Text_segmentation" title="Text segmentation">Word splitting</a> (again),</li> <li>(Step 5) Pathname expansion, i.e., shell-style <a href="/wiki/Glob_(programming)" title="Glob (programming)">globbing</a> and <a href="/wiki/Pattern_matching" title="Pattern matching">pattern matching</a> using <code>*</code>, <code>?</code>, <code>[...]</code>, and <ul><li>(Although they can be used in conjunction, the use of brackets in pattern matching, <code>[...]</code>, and the use of brackets in the testing commands, <code>[</code> and <code> &#91;&#91; ... &#93;&#93;</code>, are each one different things.)</li></ul></li> <li><a href="/wiki/String_literal" title="String literal">Quote</a> removal;</li></ul></li> <li><a href="/wiki/Redirection_(computing)" title="Redirection (computing)">Redirections</a> of Standard Input, Standard Output and Standard Error <a href="/wiki/Standard_streams" title="Standard streams">data streams</a> are performed, including <ul><li>File writing, <code>&gt;</code>, and appending, <code>&gt;&gt;</code>,</li> <li><a href="/wiki/Here_document" title="Here document">Here documents</a>, <code>&lt;&lt;</code>,</li> <li>Here strings, <code>&lt;&lt;&lt;</code>, which allow parameters to be used as input, and</li> <li>A redirection operator, <code>&gt;|</code>, which can force overwriting of a file when a shell's "noclobber" setting is enabled;</li></ul></li> <li>Command name lookup is performed, in the following order: <ul><li><a href="/wiki/Command_(computing)" title="Command (computing)">Commands</a> internal to the <a href="/wiki/Shell_(computing)" title="Shell (computing)">shell</a>: <ul><li><a href="/wiki/Alias_(command)" title="Alias (command)">Shell aliases</a>,</li> <li>Shell reserved words,</li> <li><a href="/wiki/Function_(computer_programming)" title="Function (computer programming)">Shell functions</a>, and</li> <li><a href="/wiki/Shell_builtin" title="Shell builtin">Shell built-in commands</a>;</li></ul></li> <li>Commands external to the shell: <ul><li>Separate <a href="/wiki/Unix" title="Unix">UNIX</a>-style programs such as <a href="/wiki/Ls" title="Ls"><code>ls</code></a> or <a href="/wiki/Ln_(Unix)" title="Ln (Unix)"><code>ln</code></a>, and</li> <li><a href="/wiki/Shell_script" title="Shell script">Shell scripts</a>, which are <a href="/wiki/File_system" title="File system">files</a> containing executable commands. (Shell scripts do not require compilation before execution and, when certain requirements are met, can be invoked as commands by using their filename.)</li></ul></li></ul></li> <li>The resulting string is executed as a command.</li></ul></li></ul> <p>Bash also offers... </p> <ul><li>Configurable execution environment(s):<sup id="cite_ref-81" class="reference"><a href="#cite_note-81"><span class="cite-bracket">&#91;</span>81<span class="cite-bracket">&#93;</span></a></sup> <ul><li>Shell and <a href="/wiki/Session_(computer_science)" title="Session (computer science)">session</a> startup files such as <code>~/.bashrc</code> and <code>~/.profile</code> (i.e., <a href="/wiki/Hidden_file_and_hidden_directory" title="Hidden file and hidden directory">dotfiles</a>);</li> <li>Settings (<code>set</code> <a href="/wiki/Shell_builtin" title="Shell builtin">built-in</a>) and shell options (<code>shopt</code> <a href="/wiki/Shell_builtin" title="Shell builtin">built-in</a>) which alter shell behavior;</li></ul></li> <li>Support for <a href="/wiki/Unicode" title="Unicode">Unicode</a>;</li> <li>With interactive invocation only, <ul><li>Unlimited size <a href="/wiki/Command_history" title="Command history">command history</a>,</li> <li>A directory stack (see <code>pushd</code> and <code>popd</code> built-ins),</li> <li><a href="/wiki/Command-line_completion" title="Command-line completion">Tab completion</a>,</li> <li>Configurable <a href="/wiki/Command-line_interface#Command_prompt" title="Command-line interface">prompts</a>, and</li> <li>Command line editing with <a href="/wiki/GNU_Readline" title="GNU Readline">GNU readline</a>;</li></ul></li> <li>Lightweight <a href="/wiki/Logging_(computing)" title="Logging (computing)">logging</a> for <a href="/wiki/Debugging" title="Debugging">debugging</a> purposes (xtrace), and other lightweight debugging options (errexit, noexec, nounset, pipefail, etc.);</li> <li>Shell <a href="/wiki/Compatibility_mode" title="Compatibility mode">compatibility modes</a>: bash 5.1 can operate as if it were bash 4.2, etc.;</li> <li>Various Built-In Commands: <ul><li><code>cd</code></li> <li><code>pwd</code></li></ul></li> <li>Documentation: <ul><li>A built-in <code>help</code> command.</li> <li>A <a href="/wiki/Man_page" title="Man page">man page</a>, and</li> <li>An <a href="/wiki/Info_(Unix)" title="Info (Unix)">info page</a> which is the same as the GNU manual;</li></ul></li> <li>Informal avenues of support via: <ul><li>IRC at libera.chat #bash</li> <li>Mailing lists at <a rel="nofollow" class="external free" href="https://www.gnu.org/software/bash/">https://www.gnu.org/software/bash/</a></li></ul></li></ul> <div class="mw-heading mw-heading3"><h3 id="General_Discussion">General Discussion</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=5" title="Edit section: General Discussion"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The Bash <a href="/wiki/Command_(computing)" title="Command (computing)">command</a> syntax is a <a href="/wiki/Superset" class="mw-redirect" title="Superset">superset</a> of the Bourne shell command syntax. Bash supports <a href="/wiki/Brace_expansion" class="mw-redirect" title="Brace expansion">brace expansion</a>,<sup id="cite_ref-82" class="reference"><a href="#cite_note-82"><span class="cite-bracket">&#91;</span>82<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Command_line_completion" class="mw-redirect" title="Command line completion">command line completion</a> (Programmable Completion),<sup id="cite_ref-83" class="reference"><a href="#cite_note-83"><span class="cite-bracket">&#91;</span>83<span class="cite-bracket">&#93;</span></a></sup> basic debugging<sup id="cite_ref-84" class="reference"><a href="#cite_note-84"><span class="cite-bracket">&#91;</span>84<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-85" class="reference"><a href="#cite_note-85"><span class="cite-bracket">&#91;</span>85<span class="cite-bracket">&#93;</span></a></sup> and <a href="/wiki/Signal_(IPC)" title="Signal (IPC)">signal handling</a> (using <code>trap</code>) since bash 2.05a<sup id="cite_ref-86" class="reference"><a href="#cite_note-86"><span class="cite-bracket">&#91;</span>86<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-87" class="reference"><a href="#cite_note-87"><span class="cite-bracket">&#91;</span>87<span class="cite-bracket">&#93;</span></a></sup> among other features. Bash can execute the vast majority of Bourne shell scripts without modification, with the exception of Bourne shell scripts stumbling into fringe syntax behavior interpreted differently in Bash or attempting to run a system command matching a newer Bash builtin, etc. Bash command syntax includes ideas drawn from the <a href="/wiki/KornShell" title="KornShell">Korn Shell</a> (ksh) and the <a href="/wiki/C_shell" title="C shell">C shell</a> (csh) such as command line editing, <a href="/wiki/Command_history" title="Command history">command history</a> (<code>history</code> command),<sup id="cite_ref-88" class="reference"><a href="#cite_note-88"><span class="cite-bracket">&#91;</span>88<span class="cite-bracket">&#93;</span></a></sup> the directory stack, the <code>$RANDOM</code> and <code>$PPID</code> variables, and POSIX <a href="/wiki/Command_substitution" title="Command substitution">command substitution</a> syntax <code>$(...)</code>. </p><p>When a user presses the <a href="/wiki/Tab_key" title="Tab key">tab key</a> within an interactive command-shell, Bash automatically uses <a href="/wiki/Command_line_completion" class="mw-redirect" title="Command line completion">command line completion</a>, since beta version 2.04,<sup id="cite_ref-89" class="reference"><a href="#cite_note-89"><span class="cite-bracket">&#91;</span>89<span class="cite-bracket">&#93;</span></a></sup> to match partly typed program names, filenames and variable names. The Bash command-line completion system is very flexible and customizable, and is often packaged with functions that complete arguments and filenames for specific programs and tasks. </p><p>Bash's syntax has many extensions lacking in the Bourne shell. Bash can perform integer calculations ("arithmetic evaluation") without spawning external processes. It uses the <code>((...))</code> command and the <code>$((...))</code> variable syntax for this purpose. Its syntax simplifies <a href="/wiki/Redirection_(computing)" title="Redirection (computing)">I/O redirection</a>. For example, it can redirect <a href="/wiki/Standard_out" class="mw-redirect" title="Standard out">standard output</a> (stdout) and <a href="/wiki/Standard_error_stream" class="mw-redirect" title="Standard error stream">standard error</a> (stderr) at the same time using the <code>&amp;&gt;</code> operator. This is simpler to type than the Bourne shell equivalent '<code>command &gt; file 2&gt;&amp;1</code>'. Bash supports <a href="/wiki/Process_substitution" title="Process substitution">process substitution</a> using the <code>&lt;(command)</code> and <code>&gt;(command)</code>syntax, which substitutes the output of (or input to) a command where a filename is normally used. (This is implemented through <i>/proc/fd/</i> unnamed pipes on systems that support that, or via temporary <a href="/wiki/Named_pipe" title="Named pipe">named pipes</a> where necessary). </p><p>When using the 'function' keyword, Bash function declarations are not compatible with Bourne/Korn/POSIX scripts (the KornShell has the same problem when using 'function'), but Bash accepts the same function declaration syntax as the Bourne and Korn shells, and is POSIX-conformant. Because of these and other differences, Bash shell scripts are rarely runnable under the Bourne or Korn shell interpreters unless deliberately written with that compatibility in mind, which is becoming less common as Linux becomes more widespread. But in POSIX mode, Bash conforms with POSIX more closely.<sup id="cite_ref-GNUBASHREF_90-0" class="reference"><a href="#cite_note-GNUBASHREF-90"><span class="cite-bracket">&#91;</span>90<span class="cite-bracket">&#93;</span></a></sup> </p><p>Bash supports <a href="/wiki/Here_document" title="Here document">here documents</a>. Since version 2.05b Bash can redirect <a href="/wiki/Stdin" class="mw-redirect" title="Stdin">standard input</a> (stdin) from a "here string" using the <code>&lt;&lt;&lt;</code> operator. </p><p>Bash 3.0 supports in-process <a href="/wiki/Regular_expression" title="Regular expression">regular expression</a> matching using a syntax reminiscent of <a href="/wiki/Perl" title="Perl">Perl</a>.<sup id="cite_ref-91" class="reference"><a href="#cite_note-91"><span class="cite-bracket">&#91;</span>91<span class="cite-bracket">&#93;</span></a></sup> </p><p>In February 2009,<sup id="cite_ref-92" class="reference"><a href="#cite_note-92"><span class="cite-bracket">&#91;</span>92<span class="cite-bracket">&#93;</span></a></sup> Bash 4.0 introduced support for <a href="/wiki/Associative_arrays" class="mw-redirect" title="Associative arrays">associative arrays</a>.<sup id="cite_ref-bashfaq061_4-1" class="reference"><a href="#cite_note-bashfaq061-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> Associative array indices are strings, in a manner similar to <a href="/wiki/AWK" title="AWK">AWK</a> or <a href="/wiki/Tcl" title="Tcl">Tcl</a>.<sup id="cite_ref-93" class="reference"><a href="#cite_note-93"><span class="cite-bracket">&#91;</span>93<span class="cite-bracket">&#93;</span></a></sup> They can be used to emulate multidimensional arrays. Bash 4 also switches its license to <a href="/wiki/GNU_General_Public_License#Version_3" title="GNU General Public License">GPL-3.0-or-later</a>.<sup id="cite_ref-94" class="reference"><a href="#cite_note-94"><span class="cite-bracket">&#91;</span>94<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Control_Structures">Control Structures</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=6" title="Edit section: Control Structures"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Bash supplies "conditional execution" command separators that make execution of a command contingent on the <a href="/wiki/Exit_status" title="Exit status">exit code</a> set by a precedent command. For example: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">cd</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$SOMEWHERE</span><span class="s2">&quot;</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>./do_something<span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;An error occurred&quot;</span><span class="w"> </span>&gt;<span class="p">&amp;</span><span class="m">2</span> </pre></div> <p>Where <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">./do_something</code> is only executed if the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">cd</code> (change directory) command was "successful" (returned an exit status of zero) and the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">echo</code> command would only be executed if either the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">cd</code> or the <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">./do_something</code> command return an "error" (non-zero exit status). </p><p>For all commands the exit status is stored in the special variable <code>$?</code>. Bash also supports <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="k">if</span><span class="w"> </span>...<span class="p">;</span><span class="k">then</span><span class="w"> </span>...<span class="p">;</span><span class="k">else</span><span class="w"> </span>...<span class="p">;</span><span class="k">fi</span></code> and <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="k">case</span><span class="w"> </span><span class="nv">$VARIABLE</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="nv">$pattern</span><span class="o">)</span>...<span class="p">;;</span><span class="nv">$other_pattern</span><span class="o">)</span>...<span class="p">;;</span><span class="w"> </span><span class="k">esac</span></code> forms of conditional command evaluation. </p> <div class="mw-heading mw-heading3"><h3 id="Process_Management_(a.k.a.,_&quot;Job_control&quot;)"><span id="Process_Management_.28a.k.a..2C_.22Job_control.22.29"></span>Process Management (a.k.a., "Job control")</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=7" title="Edit section: Process Management (a.k.a., &quot;Job control&quot;)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The Bash shell has two modes of execution for commands: batch (asynchronous), and concurrent (synchronous). </p><p>To execute commands in batch mode (i.e., in sequence) they must be separated by the character ";", or on separate lines: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>command1<span class="p">;</span><span class="w"> </span>command2 command3 </pre></div> <p>In this example, when command1 is finished, command2 is executed, and when command2 has completed, command3 will execute. </p><p>A <a href="/wiki/Background_process" title="Background process">background execution</a> of command1 can occur using (symbol &amp;) at the end of an execution command, and process will be executed in background while immediately returning control to the shell and allowing continued execution of commands. </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>command1<span class="w"> </span><span class="p">&amp;</span> </pre></div> <p>Or to have a concurrent execution of command1 and command2, they must be executed in the Bash shell in the following way: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>command1<span class="w"> </span><span class="p">&amp;</span><span class="w"> </span>command2 </pre></div> <p>In this case command1 is executed in the background <i>&amp;</i> symbol, returning immediately control to the shell that executes command2 in the foreground. </p><p>A process can be stopped and control returned to bash by typing <style data-mw-deduplicate="TemplateStyles:r1249182868">.mw-parser-output .keyboard-key{border:1px solid #aaa;border-radius:0.2em;box-shadow:0.1em 0.1em 0.2em rgba(0,0,0,0.1);background-color:var(--background-color-neutral-subtle,#f8f9fa);background-image:linear-gradient(to bottom,var(--background-color-neutral,#eaecf0),var(--background-color-neutral-subtle,#f8f9fa),var(--background-color-neutral,#eaecf0));color:var(--color-base,#202122);padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}</style><kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">z</kbd> while the process is running in the foreground.<sup id="cite_ref-95" class="reference"><a href="#cite_note-95"><span class="cite-bracket">&#91;</span>95<span class="cite-bracket">&#93;</span></a></sup> </p><p>A list of all processes, both in the background and stopped, can be achieved by running <code>jobs</code>: </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="nb">jobs</span> <span class="go">[1]- Running command1 &amp;</span> <span class="go">[2]+ Stopped command2</span> </pre></div> <p>In the output, the number in brackets refers to the job id. The plus sign signifies the default process for <code>bg</code> and <code>fg</code>. The text "Running" and "Stopped" refer to the <a href="/wiki/Process_state" title="Process state">process state</a>. The last string is the command that started the process. </p><p>The state of a process can be changed using various commands. The <code>fg</code> command brings a process to the foreground, while <code>bg</code> sets a stopped process running in the background. <code>bg</code> and <code>fg</code> can take a job id as their first argument, to specify the process to act on. Without one, they use the default process, identified by a plus sign in the output of <code>jobs</code>. The <code><a href="/wiki/Kill_(command)" title="Kill (command)">kill</a></code> command can be used to end a process prematurely, by sending it a <a href="/wiki/Signal_(IPC)" title="Signal (IPC)">signal</a>. The job id must be specified after a percent sign: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">kill</span><span class="w"> </span>%1 </pre></div> <div class="mw-heading mw-heading3"><h3 id="Portability_with_POSIX">Portability with POSIX</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=8" title="Edit section: Portability with POSIX"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Invoking Bash with the <code>--posix</code> option or stating <code>set -o posix</code> in a script causes Bash to conform very closely with the <a href="/wiki/Posix#POSIX.2" class="mw-redirect" title="Posix">POSIX 1003.2 standard</a>.<sup id="cite_ref-tldp_96-0" class="reference"><a href="#cite_note-tldp-96"><span class="cite-bracket">&#91;</span>96<span class="cite-bracket">&#93;</span></a></sup> Bash shell scripts intended for <a href="/wiki/Portability_(computer_science)" class="mw-redirect" title="Portability (computer science)">portability</a> should take into account at least the POSIX shell standard. Some bash features not found in POSIX are:<sup id="cite_ref-tldp_96-1" class="reference"><a href="#cite_note-tldp-96"><span class="cite-bracket">&#91;</span>96<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-deb_97-0" class="reference"><a href="#cite_note-deb-97"><span class="cite-bracket">&#91;</span>97<span class="cite-bracket">&#93;</span></a></sup> </p> <style data-mw-deduplicate="TemplateStyles:r1184024115">.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}</style><div class="div-col"> <ul><li>Certain extended invocation options</li> <li>Brace expansion</li> <li>Arrays and associative arrays</li> <li>The double bracket <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">[[...]]</code> extended test construct and its regex matching</li> <li>The double-parentheses arithmetic-evaluation construct (only <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">(( ... ))</code>; <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">$(( ... ))</code> is POSIX)</li> <li>Certain string-manipulation operations in parameter expansion</li> <li><code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">local</code> for scoped variables</li> <li>Process substitution</li> <li>Bash-specific builtins</li> <li><a href="/wiki/Coprocess" title="Coprocess">Coprocesses</a></li> <li>$EPOCHSECONDS and $EPOCHREALTIME variables<sup id="cite_ref-98" class="reference"><a href="#cite_note-98"><span class="cite-bracket">&#91;</span>98<span class="cite-bracket">&#93;</span></a></sup></li></ul> </div> <p>If a piece of code uses such a feature, it is called a "bashism" – a problem for portable use. Debian's <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">checkbashisms</code> and Vidar Holen's <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">shellcheck</code> can be used to make sure that a script does not contain these parts.<sup id="cite_ref-checkbashisms,_ManKier_man_page_99-0" class="reference"><a href="#cite_note-checkbashisms,_ManKier_man_page-99"><span class="cite-bracket">&#91;</span>99<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-shellcheck,_ManKier_man_page_100-0" class="reference"><a href="#cite_note-shellcheck,_ManKier_man_page-100"><span class="cite-bracket">&#91;</span>100<span class="cite-bracket">&#93;</span></a></sup> The list varies depending on the actual target shell: Debian's policy allows some extensions in their scripts (as they are in the <a href="/wiki/Almquist_shell#Dash" title="Almquist shell">dash</a> shell),<sup id="cite_ref-deb_97-1" class="reference"><a href="#cite_note-deb-97"><span class="cite-bracket">&#91;</span>97<span class="cite-bracket">&#93;</span></a></sup> while a script intending to support pre-POSIX Bourne shells, like <a href="/wiki/Autoconf" title="Autoconf">autoconf</a>'s <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">configure</code>, are even more limited in the features they can use.<sup id="cite_ref-101" class="reference"><a href="#cite_note-101"><span class="cite-bracket">&#91;</span>101<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Brace_Expansion">Brace Expansion</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=9" title="Edit section: Brace Expansion"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Brace expansion, also called alternation, is a feature copied from the <a href="/wiki/C_shell" title="C shell">C shell</a>. It generates a set of alternative combinations. Generated results need not exist as files. The results of each expanded string are not sorted and left to right order is preserved: </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span>a<span class="o">{</span>p,c,d,b<span class="o">}</span>e <span class="go">ape ace ade abe</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span>a,b,c<span class="o">}{</span>d,e,f<span class="o">}</span> <span class="go">ad ae af bd be bf cd ce cf</span> </pre></div> <p>Users should not use brace expansions in portable shell scripts, because the <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a> does not produce the same output. </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="c1"># bash shell</span> <span class="gp">$</span>/bin/bash<span class="w"> </span>-c<span class="w"> </span><span class="s1">&#39;echo a{p,c,d,b}e&#39;</span> <span class="go">ape ace ade abe</span> <span class="gp">$ </span><span class="c1"># A traditional shell does not produce the same output</span> <span class="gp">$ </span>/bin/sh<span class="w"> </span>-c<span class="w"> </span><span class="s1">&#39;echo a{p,c,d,b}e&#39;</span> <span class="go">a{p,c,d,b}e</span> </pre></div> <p>When brace expansion is combined with wildcards, the braces are expanded first, and then the resulting wildcards are substituted normally. Hence, a listing of JPEG and PNG images in the current directory could be obtained using: </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span>ls<span class="w"> </span>*.<span class="o">{</span>jpg,jpeg,png<span class="o">}</span><span class="w"> </span><span class="c1"># expands to *.jpg *.jpeg *.png - after which,</span> <span class="w"> </span><span class="c1"># the wildcards are processed</span> <span class="nb">echo</span><span class="w"> </span>*.<span class="o">{</span>png,jp<span class="o">{</span>e,<span class="o">}</span>g<span class="o">}</span><span class="w"> </span><span class="c1"># echo just shows the expansions -</span> <span class="w"> </span><span class="c1"># and braces in braces are possible.</span> </pre></div> <p>In addition to alternation, brace expansion can be used for sequential ranges between two integers or characters separated by double dots. Newer versions of Bash allow a third integer to specify the increment. </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span><span class="m">1</span>..10<span class="o">}</span> <span class="go">1 2 3 4 5 6 7 8 9 10</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span><span class="m">01</span>..10<span class="o">}</span> <span class="go">01 02 03 04 05 06 07 08 09 10</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span>file<span class="o">{</span><span class="m">1</span>..4<span class="o">}</span>.txt <span class="go">file1.txt file2.txt file3.txt file4.txt</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span>a..e<span class="o">}</span> <span class="go">a b c d e</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span><span class="m">1</span>..10..3<span class="o">}</span> <span class="go">1 4 7 10</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span>a..j..3<span class="o">}</span> <span class="go">a d g j</span> </pre></div> <p>When brace expansion is combined with variable expansion (A.K.A. <i>parameter expansion</i> and <i>parameter substitution</i>) the variable expansion is performed <i>after</i> the brace expansion, which in some cases may necessitate the use of the <code>eval</code> built-in, thus: </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="nv">start</span><span class="o">=</span><span class="m">1</span><span class="p">;</span><span class="w"> </span><span class="nv">end</span><span class="o">=</span><span class="m">10</span> <span class="gp">$ </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span><span class="nv">$start</span>..<span class="nv">$end</span><span class="o">}</span><span class="w"> </span><span class="c1"># fails to expand due to the evaluation order</span> <span class="go">{1..10}</span> <span class="gp">$ </span><span class="nb">eval</span><span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="o">{</span><span class="nv">$start</span>..<span class="nv">$end</span><span class="o">}</span><span class="w"> </span><span class="c1"># variable expansion occurs then resulting string is evaluated</span> <span class="go">1 2 3 4 5 6 7 8 9 10</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Configurable_execution_environment(s)"><span id="Configurable_execution_environment.28s.29"></span>Configurable execution environment(s)</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=10" title="Edit section: Configurable execution environment(s)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading4"><h4 id="Shell_and_Session_Startup_Files_(a.k.a.,_&quot;Dot_Files&quot;)"><span id="Shell_and_Session_Startup_Files_.28a.k.a..2C_.22Dot_Files.22.29"></span>Shell and Session Startup Files (a.k.a., "Dot Files")</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=11" title="Edit section: Shell and Session Startup Files (a.k.a., &quot;Dot Files&quot;)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1251242444" /><table class="box-Howto plainlinks metadata ambox ambox-content" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/40px-Ambox_important.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/60px-Ambox_important.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/80px-Ambox_important.svg.png 2x" data-file-width="40" data-file-height="40" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">This section <b>contains <a href="/wiki/Wikipedia:What_Wikipedia_is_not#NOTHOWTO" title="Wikipedia:What Wikipedia is not">instructions, advice, or how-to content</a></b>.<span class="hide-when-compact"> Please help <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Bash_(Unix_shell)&amp;action=edit">rewrite the content</a> so that it is more encyclopedic or <a href="https://meta.wikimedia.org/wiki/Help:Transwiki" class="extiw" title="m:Help:Transwiki">move</a> it to <a href="https://en.wikiversity.org/wiki/" class="extiw" title="v:">Wikiversity</a>, <a href="https://en.wikibooks.org/wiki/" class="extiw" title="b:">Wikibooks</a>, or <a href="https://en.wikivoyage.org/wiki/" class="extiw" title="voy:">Wikivoyage</a>.</span> <span class="date-container"><i>(<span class="date">January 2019</span>)</i></span></div></td></tr></tbody></table> <p>When Bash starts, it executes the commands in a variety of <a href="/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments" title="Hidden file and hidden directory">dot files</a>.<sup id="cite_ref-102" class="reference"><a href="#cite_note-102"><span class="cite-bracket">&#91;</span>102<span class="cite-bracket">&#93;</span></a></sup> Unlike Bash shell scripts, dot files do typically have neither the execute permission enabled nor an <a href="/wiki/Interpreter_directive" title="Interpreter directive">interpreter directive</a> like <code>#!/bin/bash</code>. </p> <div class="mw-heading mw-heading5"><h5 id="Legacy-compatible_Bash_startup_example">Legacy-compatible Bash startup example</h5><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=12" title="Edit section: Legacy-compatible Bash startup example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The example <code>~/.bash_profile</code> below is compatible with the Bourne shell and gives semantics similar to csh for the <code>~/.bashrc</code> and <code>~/.bash_login</code>. The <code>[ -r <i>filename</i> ] &amp;&amp; cmd</code> is a <a href="/wiki/Short-circuit_evaluation" title="Short-circuit evaluation">short-circuit evaluation</a> that tests if <i>filename</i> exists and is readable, skipping the part after the <code>&amp;&amp;</code> if it is not. </p> <div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="o">[</span><span class="w"> </span>-r<span class="w"> </span>~/.profile<span class="w"> </span><span class="o">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>.<span class="w"> </span>~/.profile<span class="w"> </span><span class="c1"># set up environment, once, Bourne-sh syntax only</span> <span class="k">if</span><span class="w"> </span><span class="o">[</span><span class="w"> </span>-n<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$PS1</span><span class="s2">&quot;</span><span class="w"> </span><span class="o">]</span><span class="w"> </span><span class="p">;</span><span class="w"> </span><span class="k">then</span><span class="w"> </span><span class="c1"># are we interactive?</span> <span class="w"> </span><span class="o">[</span><span class="w"> </span>-r<span class="w"> </span>~/.bashrc<span class="w"> </span><span class="o">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>.<span class="w"> </span>~/.bashrc<span class="w"> </span><span class="c1"># tty/prompt/function setup for interactive shells</span> <span class="w"> </span><span class="o">[</span><span class="w"> </span>-r<span class="w"> </span>~/.bash_login<span class="w"> </span><span class="o">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>.<span class="w"> </span>~/.bash_login<span class="w"> </span><span class="c1"># any at-login tasks for login shell only</span> <span class="k">fi</span><span class="w"> </span><span class="c1"># End of &quot;if&quot; block</span> </pre></div> <div class="mw-heading mw-heading5"><h5 id="Operating_system_issues_in_Bash_startup">Operating system issues in Bash startup</h5><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=13" title="Edit section: Operating system issues in Bash startup"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Some versions of <a href="/wiki/Unix" title="Unix">Unix</a> and <a href="/wiki/Linux" title="Linux">Linux</a> contain Bash system startup scripts, generally under the <code>/etc</code> directory. Bash executes these files as part of its standard initialization, but other startup files can read them in a different order than the documented Bash startup sequence. The default content of the root user's files may also have issues, as well as the skeleton files the system provides to new user accounts upon setup. The startup scripts that launch the <a href="/wiki/X_window_system" class="mw-redirect" title="X window system">X window system</a> may also do surprising things with the user's Bash startup scripts in an attempt to set up user-environment variables before launching the <a href="/wiki/Window_manager" title="Window manager">window manager</a>. These issues can often be addressed using a <code>~/.xsession</code> or <code>~/.xprofile</code> file to read the <code>~/.profile</code> — which provides the environment variables that Bash shell windows spawned from the window manager need, such as <a href="/wiki/Xterm" title="Xterm">xterm</a> or <a href="/wiki/Gnome_Terminal" class="mw-redirect" title="Gnome Terminal">Gnome Terminal</a>. </p> <div class="mw-heading mw-heading4"><h4 id="Settings_and_Shell_Options">Settings and Shell Options</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=14" title="Edit section: Settings and Shell Options"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading5"><h5 id="The_set_Built-in">The <code>set</code> Built-in</h5><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=15" title="Edit section: The set Built-in"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Xtrace: [ <code>set -x</code> | <code>set -o xtrace</code> ]</li></ul> <p>The shell's primary means of debugging. Both xtrace and verbose can be turned off at the same time with the command <code>set -</code>. </p> <ul><li>Verbose: [ <code>set -v</code> | <code>set -o verbose</code> ]</li></ul> <p>Prints a command to the terminal as Bash reads it. Bash reads constructs all at once, such as compound commands which include if-fi and case-esac blocks. If a <code>set -v</code> is included within a compound command, then "verbose" will be enabled the next time Bash reads code as input, ie, after the end of the currently executing construct.<sup id="cite_ref-103" class="reference"><a href="#cite_note-103"><span class="cite-bracket">&#91;</span>103<span class="cite-bracket">&#93;</span></a></sup> Both xtrace and verbose can be turned off at the same time with the command <code>set -</code>. </p> <div class="mw-heading mw-heading5"><h5 id="The_shopt_Built-in">The <code>shopt</code> Built-in</h5><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=16" title="Edit section: The shopt Built-in"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>expand-aliases</li></ul> <p>On by default in interactive shells. Some developers discourage its use in scripts. </p> <div class="mw-heading mw-heading3"><h3 id="Programmable_Completion">Programmable Completion</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=17" title="Edit section: Programmable Completion"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Bash supports programmable <a href="/wiki/Command-line_completion" title="Command-line completion">completion</a> via built-in <code>complete</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">compopt</code>, and <code>compgen</code> commands.<sup id="cite_ref-104" class="reference"><a href="#cite_note-104"><span class="cite-bracket">&#91;</span>104<span class="cite-bracket">&#93;</span></a></sup> The feature has been available since the beta version of 2.04 released in 2000.<sup id="cite_ref-105" class="reference"><a href="#cite_note-105"><span class="cite-bracket">&#91;</span>105<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-106" class="reference"><a href="#cite_note-106"><span class="cite-bracket">&#91;</span>106<span class="cite-bracket">&#93;</span></a></sup> These commands enable complex and intelligent completion specification for commands (i.e. installed programs), functions, variables, and filenames.<sup id="cite_ref-:1_107-0" class="reference"><a href="#cite_note-:1-107"><span class="cite-bracket">&#91;</span>107<span class="cite-bracket">&#93;</span></a></sup> </p><p>The <code>complete</code> and <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">compopt</code> two commands specify how arguments of some available commands or options are going to be listed in the <a href="/wiki/Readline" class="mw-redirect" title="Readline">readline</a> input. As of version 5.1 completion of the command or the option is usually activated by the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1249182868" /><kbd class="keyboard-key nowrap">Tab ↹</kbd> keystroke after typing its name.<sup id="cite_ref-:1_107-1" class="reference"><a href="#cite_note-:1-107"><span class="cite-bracket">&#91;</span>107<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Keyboard_shortcuts_with_Readline">Keyboard shortcuts with Readline</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=18" title="Edit section: Keyboard shortcuts with Readline"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/GNU_Readline" title="GNU Readline">GNU Readline</a></div> <p>Bash uses <a href="/wiki/GNU_Readline" title="GNU Readline">GNU Readline</a> to provide keyboard shortcuts for command line editing using the default ( <a href="/wiki/Emacs" title="Emacs">Emacs</a> ) key bindings. <a href="/wiki/Vi-binding" class="mw-redirect" title="Vi-binding">Vi-bindings</a> can be enabled by running <code>set -o vi</code>.<sup id="cite_ref-108" class="reference"><a href="#cite_note-108"><span class="cite-bracket">&#91;</span>108<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Documentation">Documentation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=19" title="Edit section: Documentation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>As the standard upon which bash is based, the POSIX Standard, or IEEE Std 1003.1,<sup id="cite_ref-109" class="reference"><a href="#cite_note-109"><span class="cite-bracket">&#91;</span>109<span class="cite-bracket">&#93;</span></a></sup> et seq, is especially informative. </p><p>The Linux "man page"<sup id="cite_ref-110" class="reference"><a href="#cite_note-110"><span class="cite-bracket">&#91;</span>110<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-111" class="reference"><a href="#cite_note-111"><span class="cite-bracket">&#91;</span>111<span class="cite-bracket">&#93;</span></a></sup> is intended to be the authoritative explanatory technical document for the understanding of how <code>bash</code> operates. It is usually available by running <code>man bash</code>. </p><p>The GNU <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/index.html">manual</a> is sometimes considered more user-friendly for reading. "You may also find information about Bash by running <code>info bash</code> ... or by looking at <code>/usr/share/doc/bash/</code>, <code>/usr/local/share/doc/bash/</code>, or similar directories on your system. A brief summary is available by running <code>bash --help</code>.<sup id="cite_ref-auto_112-0" class="reference"><a href="#cite_note-auto-112"><span class="cite-bracket">&#91;</span>112<span class="cite-bracket">&#93;</span></a></sup> </p><p>" If a user invoke RUNCOM without any arguments it prints some instructions on how to use it and stops, returning the user to the supervisor's (system's) command line.(<a href="/wiki/RUNCOM" title="RUNCOM">RUNCOM</a>)" </p><p>On modern Linuxes, information on shell built-in commands can be found by executing <code>help</code>, <code>help [built-in name]</code> or <code>man builtins</code> at a terminal prompt where bash is installed. Some commands, such as <code>echo</code>, <code>false</code>, <code>kill</code>, <code>printf</code>, <code>test</code> or <code>true</code>, depending on your system and on your locally installed version of bash, can refer to either a shell built-in or a system binary executable file. When one of these command name collisions occurs, bash will by default execute a given command line using the shell built-in. Specifying a binary executable's absolute path (i.e., <code>/bin/printf</code>) is one way of ensuring that the shell uses a system binary. This name collision issue also effects any "help summaries" viewed with <code>kill --help</code> and <code>/bin/kill --help</code>. Shell built-ins and system binary executable files of the same name often have differing options. </p><p>"The project maintainer also has a Bash page which includes Frequently Asked Questions",<sup id="cite_ref-113" class="reference"><a href="#cite_note-113"><span class="cite-bracket">&#91;</span>113<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-auto_112-1" class="reference"><a href="#cite_note-auto-112"><span class="cite-bracket">&#91;</span>112<span class="cite-bracket">&#93;</span></a></sup> this FAQ is current as of bash version 5.1 and is no longer updated. </p> <div class="mw-heading mw-heading2"><h2 id="Security_and_Vulnerabilities">Security and Vulnerabilities</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=20" title="Edit section: Security and Vulnerabilities"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Root_Scripts">Root Scripts</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=21" title="Edit section: Root Scripts"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Running any shell scripts as the root user has, for years, been widely criticized as poor security practice. One commonly given reason is that, when a script is executed as root, the negative effects of any bugs in a script would be magnified by root's elevated privileges. </p><p>One common example: a script contains the command, <code>rm -rf ${dir}/</code>, but the variable <code>$dir</code> is left undefined. In Linux, if the script was executed by a regular user, the shell would attempt to execute the command <code>rm -rf /</code> as a regular user, and the command would fail. However, if the script was executed by the root user, then the command would likely succeed and the filesystem would be erased. </p><p>It is recommended to use <code>sudo</code> on a per-command basis instead. </p> <div class="mw-heading mw-heading3"><h3 id="Debugging">Debugging</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=22" title="Edit section: Debugging"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable sortable" style="font-size: smaller;"> <caption>Bash features which can be useful during debugging. </caption> <tbody><tr> <th colspan="3" rowspan="1">Feature </th> <th colspan="1" rowspan="2">POSIX 2024 </th> <th colspan="1" rowspan="2">Description </th> <th colspan="1" rowspan="2">Bash ver. </th></tr> <tr> <th colspan="1" rowspan="1">Grammar type </th> <th colspan="1" rowspan="1">Formal name </th> <th colspan="1" rowspan="1">Syntax </th></tr> <tr> <td align="left">Parameter Expansions</td> <td>Indicate Null or Unset </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">parameter</span><span class="p">:?[word]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"Where the expansion of [word], perhaps an error message or a line number, is written to STDERR and the shell exits with a non-zero exit code." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Parameters</td> <td>Exit Status </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="nv">$?</span><span class="s2">&quot;</span></code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"Expands to the shortest representation of the decimal exit status." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Parameters</td> <td>PID of Invoked Shell </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="nv">$$</span><span class="s2">&quot;</span></code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"Expands to the shortest representation of the decimal process ID of the invoked shell." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>set&#160;:: xtrace </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-x</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">The shell's <b>primary means of debugging</b>. It "writes to standard error a trace for each command after it expands the command and before it executes it." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>set&#160;:: verbose </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-v</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"Writes its input to standard error as it is read." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>set&#160;:: pipefail </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-o<span class="w"> </span>pipefail</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"Derive the exit status of a pipeline from the exit statuses of all of the commands in the pipeline, not just the last (rightmost) command." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>set&#160;:: nounset </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-u</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">When enabled, will cause the shell to exit with an error message when it encounters an unset variable expansion. Its use has a number of counter-intuitive pitfalls. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>set&#160;:: errexit </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-e</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">ErrExit, is a setting that, when enabled, will, under certain very specific conditions, cause the shell to exit without an error message whenever the shell receives a non-zero exit code. Its use is somewhat controversial, to the extent that any somewhat obscure computer program can be considered controversial. Adherents claim that ErrExit provides an assurance of verifiability in situations where shell scripts "must not fail." However, opponents claim that its use is unreliable, deceptively simple, highly counter-intuitive, rife with gotchas and pitfalls, and in essence "security theater." Numerous developers of Bash have strongly discouraged the use of this particular setting. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Special Built-In Utility</td> <td>trap&#160;:: EXIT </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="s1">&#39;[arg]&#39;</span><span class="w"> </span>EXIT</code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">"If a [sigspec] (signal specifier) is 0 or EXIT, [arg] is executed when the shell exits." If [arg] contains expansions, then [arg] should be in single quotes. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Utility</td> <td>printf </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">printf</span><span class="w"> </span><span class="s1">&#39;&lt;%s&gt;\n&#39;</span><span class="w"> </span><span class="s2">&quot;</span><span class="si">${</span><span class="nv">var</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td align="left">A means of reliably printing the contents of a variable. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASHPID </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASHPID</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"Expands to the process ID of the current bash process."<sup id="cite_ref-114" class="reference"><a href="#cite_note-114"><span class="cite-bracket">&#91;</span>114<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_ARGC </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_ARGC</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable whose values are the number of parameters in each frame of the current bash execution call stack."<sup id="cite_ref-115" class="reference"><a href="#cite_note-115"><span class="cite-bracket">&#91;</span>115<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_ARGV </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_ARGV</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable containing all of the parameters in the current bash execution call stack."<sup id="cite_ref-116" class="reference"><a href="#cite_note-116"><span class="cite-bracket">&#91;</span>116<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_LINENO </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_LINENO</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable whose members are the line numbers in source files where each corresponding member of FUNCNAME was invoked."<sup id="cite_ref-117" class="reference"><a href="#cite_note-117"><span class="cite-bracket">&#91;</span>117<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_REMATCH </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_REMATCH</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable whose members are assigned by the =~ binary operator to the [[ conditional command."<sup id="cite_ref-118" class="reference"><a href="#cite_note-118"><span class="cite-bracket">&#91;</span>118<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_SOURCE </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_SOURCE</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable whose members are the source filenames where the corresponding shell function names in the FUNCNAME array variable are defined."<sup id="cite_ref-119" class="reference"><a href="#cite_note-119"><span class="cite-bracket">&#91;</span>119<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>BASH_XTRACEFD </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_XTRACEFD</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"If set to an integer corresponding to a valid file descriptor, Bash will write the trace output generated when ‘set -x’ is enabled to that file descriptor."<sup id="cite_ref-120" class="reference"><a href="#cite_note-120"><span class="cite-bracket">&#91;</span>120<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>EPOCHREALTIME </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">EPOCHREALTIME</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"Each time this parameter is referenced, it expands to the number of seconds since the Unix Epoch (see time(3)) as a floating point value with micro-second granularity."<sup id="cite_ref-121" class="reference"><a href="#cite_note-121"><span class="cite-bracket">&#91;</span>121<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>FUNCNAME </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">FUNCNAME</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable containing the names of all shell functions currently in the execution call stack."<sup id="cite_ref-122" class="reference"><a href="#cite_note-122"><span class="cite-bracket">&#91;</span>122<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>LINENO </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">LINENO</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"Each time this parameter is referenced, the shell substitutes a decimal number representing the current sequential line number (starting with 1) within a script or function."<sup id="cite_ref-123" class="reference"><a href="#cite_note-123"><span class="cite-bracket">&#91;</span>123<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>PIPESTATUS </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">PIPESTATUS</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"An array variable containing a list of exit status values from the processes in the most-recently-executed foreground pipeline (which may contain only a single command)."<sup id="cite_ref-124" class="reference"><a href="#cite_note-124"><span class="cite-bracket">&#91;</span>124<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>PPID </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">PPID</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"The process ID of the shell's parent."<sup id="cite_ref-125" class="reference"><a href="#cite_note-125"><span class="cite-bracket">&#91;</span>125<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Bash Variables</td> <td>PS4 </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="s2">&quot;</span><span class="si">${</span><span class="nv">PS4</span><span class="si">}</span><span class="s2">&quot;</span></code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"The value of this parameter is expanded as with PS1 and the value is printed before each command bash displays during an execution trace."<sup id="cite_ref-126" class="reference"><a href="#cite_note-126"><span class="cite-bracket">&#91;</span>126<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Shell Builtin</td> <td>set&#160;:: restricted </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span><span class="w"> </span>-r</code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">Restricted mode is intended to improve the security of an individual shell instance from a malicious human with physical access to a machine. As threat models have changed, it has become less commonly used now than it once was. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Shell Builtin</td> <td>shopt&#160;:: extdebug </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">shopt</span><span class="w"> </span>-s<span class="w"> </span>extdebug</code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"Behavior intended for use by debuggers." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Shell Builtin</td> <td>trap&#160;:: DEBUG </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="s1">&#39;[arg]&#39;</span><span class="w"> </span>DEBUG</code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"If a sigspec is DEBUG, the command arg is executed before" certain kinds of commands. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Shell Builtin</td> <td>trap&#160;:: ERR </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="s1">&#39;[arg]&#39;</span><span class="w"> </span>ERR</code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"If a sigspec is ERR, the command arg is executed whenever..." certain kinds of commands "return a non-zero exit status," subject to similar restrictions as with ErrExit. </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td align="left">Shell Builtin</td> <td>trap&#160;:: RETURN </td> <td align="left"><code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="s1">&#39;[arg]&#39;</span><span class="w"> </span>RETURN</code> </td> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td align="left">"If a sigspec is RETURN, the command arg is executed each time a shell function or a script executed with the . or source builtins finishes executing." </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr></tbody></table> <p><br /> </p> <ul><li>Shell features specified by <a href="/wiki/POSIX" title="POSIX">POSIX</a>: <ul><li>Parameter Expansions:<sup id="cite_ref-127" class="reference"><a href="#cite_note-127"><span class="cite-bracket">&#91;</span>127<span class="cite-bracket">&#93;</span></a></sup></li> <li>Special Parameters:<sup id="cite_ref-GNU_Bash_Manual,_3.4.2_Special_Parameters_128-0" class="reference"><a href="#cite_note-GNU_Bash_Manual,_3.4.2_Special_Parameters-128"><span class="cite-bracket">&#91;</span>128<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-POSIX_2024,_2.5.2_Special_Parameters_129-0" class="reference"><a href="#cite_note-POSIX_2024,_2.5.2_Special_Parameters-129"><span class="cite-bracket">&#91;</span>129<span class="cite-bracket">&#93;</span></a></sup></li> <li>Special Built-In Utility <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span></code>:<sup id="cite_ref-the_set_130-0" class="reference"><a href="#cite_note-the_set-130"><span class="cite-bracket">&#91;</span>130<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-0" class="reference"><a href="#cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="cite-bracket">&#91;</span>131<span class="cite-bracket">&#93;</span></a></sup></li> <li>Special Built-In Utility <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="o">[</span>-lp<span class="o">]</span><span class="w"> </span><span class="o">[</span>arg<span class="o">]</span><span class="w"> </span><span class="o">[</span>sigspec<span class="w"> </span>…<span class="o">]</span></code>:<sup id="cite_ref-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap_132-0" class="reference"><a href="#cite_note-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap-132"><span class="cite-bracket">&#91;</span>132<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-1" class="reference"><a href="#cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="cite-bracket">&#91;</span>131<span class="cite-bracket">&#93;</span></a></sup></li> <li>Utility <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">printf</span></code>: a means of reliably printing the contents of a variable:</li></ul></li> <li>Bash features not specified by POSIX: <ul><li>Bash Variables:<sup id="cite_ref-GNU_Bash_Manual,_5.2_Bash_Variables_133-0" class="reference"><a href="#cite_note-GNU_Bash_Manual,_5.2_Bash_Variables-133"><span class="cite-bracket">&#91;</span>133<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1):_Shell_Variables_134-0" class="reference"><a href="#cite_note-bash(1):_Shell_Variables-134"><span class="cite-bracket">&#91;</span>134<span class="cite-bracket">&#93;</span></a></sup></li> <li>Shell Builtin <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">set</span></code>:<sup id="cite_ref-the_set_130-1" class="reference"><a href="#cite_note-the_set-130"><span class="cite-bracket">&#91;</span>130<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-2" class="reference"><a href="#cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="cite-bracket">&#91;</span>131<span class="cite-bracket">&#93;</span></a></sup></li> <li>Shell Builtin <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">shopt</span></code>:<sup id="cite_ref-GNU_Bash_Manual,_4.3.2_The_Shopt_Builtin_135-0" class="reference"><a href="#cite_note-GNU_Bash_Manual,_4.3.2_The_Shopt_Builtin-135"><span class="cite-bracket">&#91;</span>135<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-3" class="reference"><a href="#cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="cite-bracket">&#91;</span>131<span class="cite-bracket">&#93;</span></a></sup></li> <li>Shell Builtin <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span><span class="w"> </span><span class="o">[</span>-lp<span class="o">]</span><span class="w"> </span><span class="o">[</span>arg<span class="o">]</span><span class="w"> </span><span class="o">[</span>sigspec<span class="w"> </span>…<span class="o">]</span></code>:<sup id="cite_ref-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap_132-1" class="reference"><a href="#cite_note-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap-132"><span class="cite-bracket">&#91;</span>132<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-4" class="reference"><a href="#cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="cite-bracket">&#91;</span>131<span class="cite-bracket">&#93;</span></a></sup> While POSIX does specify certain uses of the <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">trap</span></code> builtin, the following signal specs are Bash extensions.</li></ul></li> <li>Third party debugging utilities: <ul><li>ShellCheck: Shell script analysis tool;<sup id="cite_ref-ShellCheck_136-0" class="reference"><a href="#cite_note-ShellCheck-136"><span class="cite-bracket">&#91;</span>136<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-shellcheck,_ManKier_man_page_100-1" class="reference"><a href="#cite_note-shellcheck,_ManKier_man_page-100"><span class="cite-bracket">&#91;</span>100<span class="cite-bracket">&#93;</span></a></sup></li> <li>devscripts-checkbashisms: Check whether a /bin/sh script contains any common bash-specific constructs;<sup id="cite_ref-Package:_devscripts:_scripts_to_make_the_life_of_a_Debian_Package_maintainer_easier_137-0" class="reference"><a href="#cite_note-Package:_devscripts:_scripts_to_make_the_life_of_a_Debian_Package_maintainer_easier-137"><span class="cite-bracket">&#91;</span>137<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-checkbashisms,_ManKier_man_page_99-1" class="reference"><a href="#cite_note-checkbashisms,_ManKier_man_page-99"><span class="cite-bracket">&#91;</span>99<span class="cite-bracket">&#93;</span></a></sup></li> <li>kcov: Code coverage tool without special compilation options;<sup id="cite_ref-Kcov_-_code_coverage_138-0" class="reference"><a href="#cite_note-Kcov_-_code_coverage-138"><span class="cite-bracket">&#91;</span>138<span class="cite-bracket">&#93;</span></a></sup></li> <li>Bashdb: The Bash symbolic debugger.<sup id="cite_ref-Debugging_with_the_BASH_debugger_139-0" class="reference"><a href="#cite_note-Debugging_with_the_BASH_debugger-139"><span class="cite-bracket">&#91;</span>139<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-Documentation_of_Project_Homepage_140-0" class="reference"><a href="#cite_note-Documentation_of_Project_Homepage-140"><span class="cite-bracket">&#91;</span>140<span class="cite-bracket">&#93;</span></a></sup></li></ul></li></ul> <div class="mw-heading mw-heading4"><h4 id="Examples">Examples</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=23" title="Edit section: Examples"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>With the <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr">:?</code> parameter expansion, an unset or null variable can halt a script. </p> <ul><li>ex.sh <dl><dd><div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="ch">#!/bin/bash</span> <span class="nv">bar</span><span class="o">=</span><span class="s2">&quot;foo is not defined&quot;</span> <span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;</span><span class="si">${</span><span class="nv">foo</span><span class="p">:?</span><span class="nv">$bar</span><span class="si">}</span><span class="s2">&quot;</span> <span class="nb">echo</span><span class="w"> </span>this<span class="w"> </span>message<span class="w"> </span>doesn<span class="err">&#39;</span>t<span class="w"> </span>print </pre></div></dd> <dd><div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>./ex.sh <span class="go">./ex.sh: line 3: foo: foo is not defined</span> </pre></div></dd></dl></li></ul> <p>Reliably printing the contents of an array that contains spaces and newlines first in a portable syntax, and then the same thing in Bash. Note that in Bash, the number of spaces before the newline is made clear. </p> <dl><dd><div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span><span class="c1"># In POSIX shell:</span> <span class="gp">$ </span><span class="nv">array</span><span class="o">=(</span><span class="w"> </span><span class="s2">&quot;a &quot;</span><span class="w"> </span><span class="s2">&quot; b&quot;</span><span class="w"> </span><span class="s2">&quot;</span> <span class="go">&gt; c &quot; )</span> <span class="gp">$ </span><span class="nb">printf</span><span class="w"> </span><span class="s1">&#39;,%s,\n&#39;</span><span class="w"> </span><span class="s2">&quot;</span><span class="si">${</span><span class="nv">array</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span> <span class="go">,a ,</span> <span class="go">, b,</span> <span class="go">,</span> <span class="go"> c ,</span> </pre></div></dd> <dd><div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># In Bash:</span> <span class="nb">declare</span><span class="w"> </span>-p<span class="w"> </span>array <span class="nb">declare</span><span class="w"> </span>-a<span class="w"> </span><span class="nv">array</span><span class="o">=([</span><span class="m">0</span><span class="o">]=</span><span class="s2">&quot;a &quot;</span><span class="w"> </span><span class="o">[</span><span class="m">1</span><span class="o">]=</span><span class="s2">&quot; b&quot;</span><span class="w"> </span><span class="o">[</span><span class="m">2</span><span class="o">]=</span><span class="s1">$&#39; \n c &#39;</span><span class="o">)</span> </pre></div></dd></dl> <p>Printing an error message when there's a problem. </p> <ul><li>error.sh <dl><dd><div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="k">if</span><span class="w"> </span>!<span class="w"> </span>lsblk<span class="w"> </span><span class="p">|</span><span class="w"> </span>grep<span class="w"> </span>sdb <span class="k">then</span> <span class="w"> </span><span class="nb">echo</span><span class="w"> </span>Error,<span class="w"> </span>line<span class="w"> </span><span class="nv">$LINENO</span> <span class="k">fi</span> </pre></div></dd> <dd><div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>./error.sh <span class="go">Error, line 130</span> </pre></div></dd></dl></li></ul> <p>Using <a href="/wiki/Xtrace" class="mw-redirect" title="Xtrace">xtrace</a>. If errexit had been enabled, then <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" style="" dir="ltr"><span class="nb">echo</span><span class="w"> </span>quux</code> would not have been executed. </p> <ul><li>test.sh <dl><dd><div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre><span></span><span class="ch">#!/bin/bash</span> <span class="nb">set</span><span class="w"> </span>-x <span class="nv">foo</span><span class="o">=</span>bar<span class="p">;</span><span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="nv">$foo</span> <span class="nb">false</span> <span class="nb">echo</span><span class="w"> </span>quux </pre></div></dd> <dd><div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>./test.sh <span class="go">+ foo=bar</span> <span class="go">+ echo bar</span> <span class="go">bar</span> <span class="go">+ false</span> <span class="go">+ echo quux</span> <span class="go">quux</span> </pre></div></dd></dl></li></ul> <div class="mw-heading mw-heading3"><h3 id="Deprecated_syntax">Deprecated syntax</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=24" title="Edit section: Deprecated syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Back-tick style command substitutions: <code>`...`</code> is deprecated in favor of <code>$(...)</code>;</li> <li>Use of -a or -o in <code>test</code>/<code>[</code>/<code>[[</code> commands, <ul><li>for example, <code>[ -r ./file -a&#160;! -l ./file ]</code> is deprecated in favor of <code>[ -r ./file ] &amp;&amp;&#160;! [ -l ./file ]</code>;</li></ul></li> <li>Use of the arithmetic syntax <code>$[...]</code> is deprecated in favor of <code>$((...))</code> or <code>((...))</code>, as appropriate;</li> <li>Use of <code>^</code> as a pipeline is deprecated in favor of <code>|</code>;</li> <li>Any uses of <code>expr</code> or <code>let</code>.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Shellshock">Shellshock</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=25" title="Edit section: Shellshock"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In September 2014, a <a href="/wiki/Security_bug" title="Security bug">security bug</a> was discovered<sup id="cite_ref-141" class="reference"><a href="#cite_note-141"><span class="cite-bracket">&#91;</span>141<span class="cite-bracket">&#93;</span></a></sup> in the program. It was dubbed "<a href="/wiki/Shellshock_(software_bug)" title="Shellshock (software bug)">Shellshock</a>." Public disclosure quickly led to a range of <a href="/wiki/Attack_(computing)" class="mw-redirect" title="Attack (computing)">attacks</a> across the <a href="/wiki/Internet" title="Internet">Internet</a>.<sup id="cite_ref-TR-20140924_142-0" class="reference"><a href="#cite_note-TR-20140924-142"><span class="cite-bracket">&#91;</span>142<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-NYT-20140925-NP_143-0" class="reference"><a href="#cite_note-NYT-20140925-NP-143"><span class="cite-bracket">&#91;</span>143<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-ZDN-20140929_144-0" class="reference"><a href="#cite_note-ZDN-20140929-144"><span class="cite-bracket">&#91;</span>144<span class="cite-bracket">&#93;</span></a></sup> </p><p>Exploitation of the vulnerability could enable <a href="/wiki/Arbitrary_code_execution" title="Arbitrary code execution">arbitrary code execution</a> in <a href="/wiki/Common_Gateway_Interface" title="Common Gateway Interface">CGI</a> scripts executable by certain versions of Bash. The bug involved how Bash passed function definitions to subshells through <a href="/wiki/Environment_variable" title="Environment variable">environment variables</a>.<sup id="cite_ref-145" class="reference"><a href="#cite_note-145"><span class="cite-bracket">&#91;</span>145<span class="cite-bracket">&#93;</span></a></sup> The bug had been present in the <a href="/wiki/Source_code" title="Source code">source code</a> since August 1989 (version 1.03)<sup id="cite_ref-Seclists-20141004_146-0" class="reference"><a href="#cite_note-Seclists-20141004-146"><span class="cite-bracket">&#91;</span>146<span class="cite-bracket">&#93;</span></a></sup> and was patched in September 2014 (version 4.3). </p><p>Patches to fix the bugs were made available soon after the bugs were identified. Upgrading to a current version is strongly advised. </p><p>It was assigned the <a href="/wiki/Common_Vulnerabilities_and_Exposures" title="Common Vulnerabilities and Exposures">Common Vulnerability</a> identifiers CVE-<style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><a rel="nofollow" class="external text" href="https://nvd.nist.gov/vuln/detail/CVE-2014-6271">2014-6271</a>,&#32;CVE-<a rel="nofollow" class="external text" href="https://nvd.nist.gov/vuln/detail/CVE-2014-6277">2014-6277</a> and&#32;CVE-<a rel="nofollow" class="external text" href="https://nvd.nist.gov/vuln/detail/CVE-2014-7169">2014-7169</a>, among others. Under CVSS Metrics 2.x and 3.x, the bug is regarded as "high" and "critical," respectively. </p> <div class="mw-heading mw-heading3"><h3 id="Bug_reporting">Bug reporting</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=26" title="Edit section: Bug reporting"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951" /><div role="note" class="hatnote navigation-not-searchable">"bashbug" redirects here. For the widely reported September 2014 bug found in Bash, see <a href="/wiki/Shellshock_(software_bug)" title="Shellshock (software bug)">Shellshock (software bug)</a>.</div> <p>An external command called <i>bashbug</i> reports Bash shell bugs. When the command is invoked, it brings up the user's default editor with a form to fill in. The form is mailed to the Bash maintainers (or optionally to other email addresses).<sup id="cite_ref-147" class="reference"><a href="#cite_note-147"><span class="cite-bracket">&#91;</span>147<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-148" class="reference"><a href="#cite_note-148"><span class="cite-bracket">&#91;</span>148<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=27" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1266661725">.mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:1px solid var(--border-color-base,#a2a9b1);padding:0.1em;background:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}</style><ul role="navigation" aria-label="Portals" class="noprint portalbox portalborder portalright"> <li class="portalbox-entry"><span class="portalbox-image"><span class="noviewer" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/28px-Free_and_open-source_software_logo_%282009%29.svg.png" decoding="async" width="28" height="28" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/42px-Free_and_open-source_software_logo_%282009%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/56px-Free_and_open-source_software_logo_%282009%29.svg.png 2x" data-file-width="512" data-file-height="512" /></span></span></span><span class="portalbox-link"><a href="/wiki/Portal:Free_and_open-source_software" title="Portal:Free and open-source software">Free and open-source software portal</a></span></li></ul> <ul><li><a href="/wiki/Comparison_of_command_shells" title="Comparison of command shells">Comparison of command shells</a></li> <li><a href="/wiki/Multics#Commands" title="Multics">Multics §&#160;Commands</a>, exec_com: the first command processor.<sup id="cite_ref-Multics_History,_info_segment_on_exec_com_21-1" class="reference"><a href="#cite_note-Multics_History,_info_segment_on_exec_com-21"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup></li></ul> <div class="mw-heading mw-heading3"><h3 id="Unix_Shells">Unix Shells</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=28" title="Edit section: Unix Shells"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Almquist_shell" title="Almquist shell"> Almquist shell (ash)</a></li> <li><a href="/wiki/Bourne_shell" title="Bourne shell"> Bourne shell (sh)</a></li> <li><a href="/wiki/BusyBox" title="BusyBox">BusyBox</a></li> <li><a href="/wiki/C_shell" title="C shell"> C shell (csh)</a></li> <li><a href="/wiki/Almquist_shell#dash" title="Almquist shell">Debian-Almquist Shell (dash)</a></li> <li><a href="/wiki/Fish_(Unix_shell)" title="Fish (Unix shell)">Fish shell: Friendly Interactive Shell</a></li> <li><a href="/wiki/Google_Shell" title="Google Shell"> Google Shell (goosh)</a> - a UNIX-like front-end for Google Search.</li> <li><a href="/wiki/KornShell" title="KornShell">Korn shell (ksh)</a>, of which there are numerous variations.</li> <li>nsh - "A command-line shell like fish, but POSIX compatible;" available on Arch.<sup id="cite_ref-Arch_Linux,_Command-line_shell_149-0" class="reference"><a href="#cite_note-Arch_Linux,_Command-line_shell-149"><span class="cite-bracket">&#91;</span>149<span class="cite-bracket">&#93;</span></a></sup></li> <li>osh - "Oil Shell is a Bash-compatible UNIX command-line shell;" available on Arch.</li> <li><a href="/wiki/PWB_shell" title="PWB shell">Mashey or Programmer's Workbench shell</a></li> <li><a href="/wiki/Qshell" title="Qshell"> Qshell for IBM i</a></li> <li><a href="/wiki/Rc_(Unix_shell)" title="Rc (Unix shell)"> rc from Plan 9</a></li> <li><a href="/wiki/RUNCOM" title="RUNCOM">RUNCOM</a></li> <li>rush - Restricted User Shell, available on Debian.<sup id="cite_ref-Debian_Wiki:_Shell_41-1" class="reference"><a href="#cite_note-Debian_Wiki:_Shell-41"><span class="cite-bracket">&#91;</span>41<span class="cite-bracket">&#93;</span></a></sup></li> <li><a href="/wiki/Stand-alone_shell" title="Stand-alone shell"> Stand-alone shell (sash)</a></li> <li>scsh - The Scheme Shell.</li> <li><a href="/wiki/Tcsh" title="Tcsh">TENEX C shell (tcsh)</a></li> <li><a href="/wiki/Thompson_shell" title="Thompson shell"> Thompson shell (tsh)</a></li> <li><a href="/wiki/Toybox" title="Toybox">Toybox</a></li> <li>yash - Yet Another Shell, aims "to be the most POSIX-compliant shell in the world;" available on Arch.</li> <li><a href="/wiki/Z_shell" title="Z shell"> Z shell (zsh)</a></li></ul> <div style="clear:both;" class=""></div> <div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=29" title="Edit section: Further reading"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFPouzin1965" class="citation web cs1">Pouzin, Louis (2 April 1965). <a rel="nofollow" class="external text" href="https://people.csail.mit.edu/saltzer/Multics/Multics-Documents/MDN/MDN-4.pdf">"The SHELL: A Global Tool for Calling and Chaining Procedures in the System"</a> <span class="cs1-format">(PDF)</span>. <i>mit.edu</i>. MIT<span class="reference-accessdate">. Retrieved <span class="nowrap">5 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=mit.edu&amp;rft.atitle=The+SHELL%3A+A+Global+Tool+for+Calling+and+Chaining+Procedures+in+the+System&amp;rft.date=1965-04-02&amp;rft.aulast=Pouzin&amp;rft.aufirst=Louis&amp;rft_id=https%3A%2F%2Fpeople.csail.mit.edu%2Fsaltzer%2FMultics%2FMultics-Documents%2FMDN%2FMDN-4.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFStephenson2003" class="citation book cs1">Stephenson, Neal (2003). <i><a href="/wiki/In_the_Beginning..._Was_the_Command_Line" title="In the Beginning... Was the Command Line">In the Beginning... Was the Command Line</a></i>. HarperCollins. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0380815937" title="Special:BookSources/978-0380815937"><bdi>978-0380815937</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=In+the+Beginning...+Was+the+Command+Line&amp;rft.pub=HarperCollins&amp;rft.date=2003&amp;rft.isbn=978-0380815937&amp;rft.aulast=Stephenson&amp;rft.aufirst=Neal&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.ibm.com/tutorials/l-linux-shells/">"Evolution of shells in Linux"</a>. <i>ibm.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ibm.com&amp;rft.atitle=Evolution+of+shells+in+Linux&amp;rft_id=https%3A%2F%2Fdeveloper.ibm.com%2Ftutorials%2Fl-linux-shells%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://decal.ocf.berkeley.edu/labs/scripting/">"Scripting Reference&#160;:: Scripting with the Bourne-Again Shell (Bash)"</a>. <i>berkeley.edu</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=berkeley.edu&amp;rft.atitle=Scripting+Reference+%3A%3A+Scripting+with+the+Bourne-Again+Shell+%28Bash%29&amp;rft_id=https%3A%2F%2Fdecal.ocf.berkeley.edu%2Flabs%2Fscripting%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://iris.eecs.berkeley.edu/faq/unix/">"IRIS&#160;:: Instructional &amp; Research Information Systems&#160;:: FAQ: Unix&#160;:: About UNIX Shells"</a>. <i>berkeley.edu</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=berkeley.edu&amp;rft.atitle=IRIS+%3A%3A+Instructional+%26+Research+Information+Systems+%3A%3A+FAQ%3A+Unix+%3A%3A+About+UNIX+Shells&amp;rft_id=https%3A%2F%2Firis.eecs.berkeley.edu%2Ffaq%2Funix%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.oreilly.com/library/view/learning-the-bash/1565923472/ch01s03.html">"Learning the Bash Shell, 2e"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">14 January</span> 2025</span>. <q>This book describes the latest release of bash 2.0 (version 2.01, dated June 1997).</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Learning+the+Bash+Shell%2C+2e&amp;rft_id=https%3A%2F%2Fwww.oreilly.com%2Flibrary%2Fview%2Flearning-the-bash%2F1565923472%2Fch01s03.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html">"Apple Developer, Documentation Archive, Shell Style Guide"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2025</span>. <q>Copyright © 2003, 2014 Apple Inc. All Rights Reserved. ... Updated: 2014-03-10</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Apple+Developer%2C+Documentation+Archive%2C+Shell+Style+Guide&amp;rft_id=https%3A%2F%2Fdeveloper.apple.com%2Flibrary%2Farchive%2Fdocumentation%2FOpenSource%2FConceptual%2FShellScripting%2FIntroduction%2FIntroduction.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://google.github.io/styleguide/shellguide.html">"Google, Shell Style Guide"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2025</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Google%2C+Shell+Style+Guide&amp;rft_id=https%3A%2F%2Fgoogle.github.io%2Fstyleguide%2Fshellguide.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul> <p><br /> </p> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Bash_(Unix_shell)&amp;action=edit&amp;section=30" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-wikidata-b00870191b92885a76e9c7648a047918d2ff84a0-v18-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-wikidata-b00870191b92885a76e9c7648a047918d2ff84a0-v18_1-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://ftp.gnu.org/gnu/bash/">"Index of /gnu/bash"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">4 December</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Index+of+%2Fgnu%2Fbash&amp;rft_id=https%3A%2F%2Fftp.gnu.org%2Fgnu%2Fbash%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-license-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-license_2-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFGNU_Project" class="citation web cs1"><a href="/wiki/GNU_Project" title="GNU Project">GNU Project</a>. <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/">"README file"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190426210620/http://www.gnu.org/software/bash/">Archived</a> from the original on 26 April 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">16 April</span> 2014</span>. <q>Bash is free software, distributed under the terms of the [GNU] General Public License as published by the Free Software Foundation, version 3 of the License (or any later version).</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=README+file&amp;rft.au=GNU+Project&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20211015233550/http://www.oldlinux.org/Linux.old/bin/old/bash-1.11/">"bash-1.11"</a>. <i>oldlinux.org</i>. Archived from <a rel="nofollow" class="external text" href="http://www.oldlinux.org/Linux.old/bin/old/bash-1.11/">the original</a> on 15 October 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">9 June</span> 2021</span>. <q>See test.c for GPL-2.0-or-later</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=oldlinux.org&amp;rft.atitle=bash-1.11&amp;rft_id=http%3A%2F%2Fwww.oldlinux.org%2FLinux.old%2Fbin%2Fold%2Fbash-1.11%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-bashfaq061-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-bashfaq061_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-bashfaq061_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://mywiki.wooledge.org/BashFAQ/061">"BashFAQ/061 - Greg's Wiki"</a>. <i>mywiki.wooledge.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212811/https://mywiki.wooledge.org/BashFAQ/061">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">1 March</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=mywiki.wooledge.org&amp;rft.atitle=BashFAQ%2F061+-+Greg%27s+Wiki&amp;rft_id=https%3A%2F%2Fmywiki.wooledge.org%2FBashFAQ%2F061&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.oldlinux.org/Linux.old/bin/old/bash-1.05.tar">"bash-1.05.tar"</a>. <i>oldlinux.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=oldlinux.org&amp;rft.atitle=bash-1.05.tar&amp;rft_id=http%3A%2F%2Fwww.oldlinux.org%2FLinux.old%2Fbin%2Fold%2Fbash-1.05.tar&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://unix.stackexchange.com/questions/243375/is-there-a-way-to-download-the-presumably-initial-bash-source-bash-0-99">"Is there a way to download the presumably initial bash source bash-0.99?"</a>. <i>unix.stackexchange.com</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=unix.stackexchange.com&amp;rft.atitle=Is+there+a+way+to+download+the+presumably+initial+bash+source+bash-0.99%3F&amp;rft_id=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F243375%2Fis-there-a-way-to-download-the-presumably-initial-bash-source-bash-0-99&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFRichard_Stallman2010" class="citation web cs1"><a href="/wiki/Richard_Stallman" title="Richard Stallman">Richard Stallman</a> (12 November 2010). <a rel="nofollow" class="external text" href="https://www.gnu.org/gnu/thegnuproject.html">"About the GNU Project"</a>. Free Software Foundation. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110424064815/https://www.gnu.org/gnu/thegnuproject.html">Archived</a> from the original on 24 April 2011<span class="reference-accessdate">. Retrieved <span class="nowrap">13 March</span> 2011</span>. <q><span class="cs1-kern-left"></span>"Bourne Again Shell" is a play on the name <i>Bourne Shell</i>, which was the usual shell on Unix.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=About+the+GNU+Project&amp;rft.pub=Free+Software+Foundation&amp;rft.date=2010-11-12&amp;rft.au=Richard+Stallman&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fgnu%2Fthegnuproject.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFGattol2011" class="citation web cs1">Gattol, Markus (13 March 2011). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110309092607/http://www.markus-gattol.name/ws/bash.html">"Bourne-again Shell"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.markus-gattol.name/ws/bash.html">the original</a> on 9 March 2011<span class="reference-accessdate">. Retrieved <span class="nowrap">13 March</span> 2011</span>. <q>The name is a pun on the name of the Bourne shell (sh), an early and important Unix shell written by Stephen Bourne and distributed with Version 7 Unix circa 1978, and the concept of being "born again".</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bourne-again+Shell&amp;rft.date=2011-03-13&amp;rft.aulast=Gattol&amp;rft.aufirst=Markus&amp;rft_id=http%3A%2F%2Fwww.markus-gattol.name%2Fws%2Fbash.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.ibm.com/docs/en/aix/latest?topic=shells-bourne-shell">"Bourne shell"</a>. <i>ibm.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>. <q>The Bourne shell is an interactive command interpreter and command programming language.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ibm.com&amp;rft.atitle=Bourne+shell&amp;rft_id=https%3A%2F%2Fwww.ibm.com%2Fdocs%2Fen%2Faix%2Flatest%3Ftopic%3Dshells-bourne-shell&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-BashBeta-8"><span class="mw-cite-backlink">^ <a href="#cite_ref-BashBeta_8-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-BashBeta_8-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFBrian_Fox_(forwarded_by_Leonard_H._Tower_Jr.)1989" class="citation newsgroup cs1">Brian Fox (forwarded by Leonard H. Tower Jr.) (8 June 1989). <a rel="nofollow" class="external text" href="https://groups.google.com/group/gnu.announce/msg/a509f48ffb298c35?hl=en">"Bash is in beta release!"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:gnu.announce">gnu.announce</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130504075535/http://groups.google.com/group/gnu.announce/msg/a509f48ffb298c35?hl=en">Archived</a> from the original on 4 May 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">28 October</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bash+is+in+beta+release%21&amp;rft.pub=gnu.announce&amp;rft.date=1989-06-08&amp;rft.au=Brian+Fox+%28forwarded+by+Leonard+H.+Tower+Jr.%29&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgnu.announce%2Fmsg%2Fa509f48ffb298c35%3Fhl%3Den&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/gnu/about-gnu.html">"GNU in a Nutshell"</a>. <i>gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>. <q>The ultimate goal is to provide free software to do all of the jobs computer users want to do—and thus make proprietary software a thing of the past.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=gnu.org&amp;rft.atitle=GNU+in+a+Nutshell&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fgnu%2Fabout-gnu.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.fsf.org/">"Free Software Foundation — working together for free software — Front Page"</a>. <i>fsf.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>. <q>The Free Software Foundation (FSF) is a nonprofit with a worldwide mission to promote computer user freedom.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=fsf.org&amp;rft.atitle=Free+Software+Foundation+%E2%80%94+working+together+for+free+software+%E2%80%94+Front+Page&amp;rft_id=https%3A%2F%2Fwww.fsf.org%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/software.en.html">"GNU Software"</a>. <i>gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>. <q>GNU is an operating system which is 100% free software.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=gnu.org&amp;rft.atitle=GNU+Software&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fsoftware.en.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/bulletins/bull7.html#SEC3">"GNU's Bulletin, vol. 1 no. 7, June, 1989&#160;:: GNU's Who"</a>. <i>gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">19 May</span> 2024</span>. <q>Brian Fox has now completed GNU's version of sh, called BASH, the `Bourne Again SHell'.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=gnu.org&amp;rft.atitle=GNU%27s+Bulletin%2C+vol.+1+no.+7%2C+June%2C+1989+%3A%3A+GNU%27s+Who&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fbulletins%2Fbull7.html%23SEC3&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFHamilton2008" class="citation journal cs1">Hamilton, Naomi (30 May 2008). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110706103704/http://www.computerworld.com.au/article/222764/a-z_programming_languages_bash_bourne-again_shell/?pp=2&amp;fp=16&amp;fpid=1">"The A-Z of Programming Languages: BASH/Bourne-Again Shell"</a>. <i>Computerworld</i>: 2. Archived from <a rel="nofollow" class="external text" href="http://www.computerworld.com.au/article/222764/a-z_programming_languages_bash_bourne-again_shell/?pp=2&amp;fp=16&amp;fpid=1">the original</a> on 6 July 2011<span class="reference-accessdate">. Retrieved <span class="nowrap">21 March</span> 2011</span>. <q>When Richard Stallman decided to create a full replacement for the then-encumbered Unix systems, he knew that he would eventually have to have replacements for all of the common utilities, especially the standard shell, and those replacements would have to have acceptable licensing.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Computerworld&amp;rft.atitle=The+A-Z+of+Programming+Languages%3A+BASH%2FBourne-Again+Shell&amp;rft.pages=2&amp;rft.date=2008-05-30&amp;rft.aulast=Hamilton&amp;rft.aufirst=Naomi&amp;rft_id=http%3A%2F%2Fwww.computerworld.com.au%2Farticle%2F222764%2Fa-z_programming_languages_bash_bourne-again_shell%2F%3Fpp%3D2%26fp%3D16%26fpid%3D1&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://a-z.readthedocs.io/en/latest/bash.html">"readthedocs.io"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=readthedocs.io&amp;rft_id=https%3A%2F%2Fa-z.readthedocs.io%2Fen%2Flatest%2Fbash.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www2.computerworld.com.au/article/222764/a-z_programming_languages_bash_bourne-again_shell/">"computerworld.com.au"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=computerworld.com.au&amp;rft_id=https%3A%2F%2Fwww2.computerworld.com.au%2Farticle%2F222764%2Fa-z_programming_languages_bash_bourne-again_shell%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://cse.sc.edu/~mgv/csce330f16/pres/az.pdf">"University of South Carolina"</a> <span class="cs1-format">(PDF)</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=University+of+South+Carolina&amp;rft_id=https%3A%2F%2Fcse.sc.edu%2F~mgv%2Fcsce330f16%2Fpres%2Faz.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFTorvalds1991" class="citation web cs1">Torvalds, Linus Benedict (August 1991). <a rel="nofollow" class="external text" href="https://groups.google.com/group/comp.os.minix/msg/b813d52cbc5a044b">"comp.os.minix"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">6 September</span> 2009</span>. <q>I've currently ported bash(1.08) and gcc(1.40), and things seem to work.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=comp.os.minix&amp;rft.date=1991-08&amp;rft.aulast=Torvalds&amp;rft.aufirst=Linus+Benedict&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fcomp.os.minix%2Fmsg%2Fb813d52cbc5a044b&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20180901171316/ftp://ftp.cwru.edu/pub/bash/FAQ">"Bash FAQ, version 4.14"</a>. Archived from <a rel="nofollow" class="external text" href="ftp://ftp.cwru.edu/pub/bash/FAQ">the original</a> on September 1, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">April 9,</span> 2016</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bash+FAQ%2C+version+4.14&amp;rft_id=ftp%3A%2F%2Fftp.cwru.edu%2Fpub%2Fbash%2FFAQ&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-developer.ibm.com-13"><span class="mw-cite-backlink">^ <a href="#cite_ref-developer.ibm.com_13-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-developer.ibm.com_13-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-developer.ibm.com_13-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-developer.ibm.com_13-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-developer.ibm.com_13-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.ibm.com/tutorials/l-linux-shells/">"Evolution of shells in Linux"</a>. 9 December 2011.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Evolution+of+shells+in+Linux&amp;rft.date=2011-12-09&amp;rft_id=https%3A%2F%2Fdeveloper.ibm.com%2Ftutorials%2Fl-linux-shells%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Pouzin,_2000-14"><span class="mw-cite-backlink">^ <a href="#cite_ref-Pouzin,_2000_14-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Pouzin,_2000_14-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFLouis_Pouzin2000" class="citation web cs1">Louis Pouzin (25 November 2000). <a rel="nofollow" class="external text" href="https://multicians.org/shell.html">"The Origin of the Shell"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+Origin+of+the+Shell&amp;rft.date=2000-11-25&amp;rft.au=Louis+Pouzin&amp;rft_id=https%3A%2F%2Fmulticians.org%2Fshell.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Indiana_University,_2009-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-Indiana_University,_2009_15-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20100610011504/http://kb.iu.edu/data/abnd.html">"In Unix, what do some obscurely named commands stand for?"</a>. Indiana University. 5 February 2009. Archived from <a rel="nofollow" class="external text" href="http://kb.iu.edu/data/abnd.html">the original</a> on 10 June 2010.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=In+Unix%2C+what+do+some+obscurely+named+commands+stand+for%3F&amp;rft.pub=Indiana+University&amp;rft.date=2009-02-05&amp;rft_id=http%3A%2F%2Fkb.iu.edu%2Fdata%2Fabnd.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.oreilly.com/pub/au/2933">"Vicki Brown, Bio"</a>. O'Reilly Media.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Vicki+Brown%2C+Bio&amp;rft.pub=O%27Reilly+Media&amp;rft_id=https%3A%2F%2Fwww.oreilly.com%2Fpub%2Fau%2F2933&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Pouzin,_1965-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-Pouzin,_1965_17-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://people.csail.mit.edu/saltzer/Multics/Multics-Documents/MDN/MDN-4.pdf">"The SHELL, A Global Tool for Calling and Chaining Procedures in the System"</a> <span class="cs1-format">(PDF)</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+SHELL%2C+A+Global+Tool+for+Calling+and+Chaining+Procedures+in+the+System&amp;rft_id=https%3A%2F%2Fpeople.csail.mit.edu%2Fsaltzer%2FMultics%2FMultics-Documents%2FMDN%2FMDN-4.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Bourne,_2015-18"><span class="mw-cite-backlink">^ <a href="#cite_ref-Bourne,_2015_18-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Bourne,_2015_18-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Bourne,_2015_18-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.bsdcan.org/2015/schedule/events/612.en.html">"BSDCan 2015, The Technical BSD Conference"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2025</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=BSDCan+2015%2C+The+Technical+BSD+Conference&amp;rft_id=https%3A%2F%2Fwww.bsdcan.org%2F2015%2Fschedule%2Fevents%2F612.en.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFStephen_R._Bourne2015" class="citation web cs1">Stephen R. Bourne (12 June 2015). <a rel="nofollow" class="external text" href="https://www.bsdcan.org/2015/schedule/attachments/306_srbBSDCan2015.pdf">"Early days of Unix and design of sh"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2025</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Early+days+of+Unix+and+design+of+sh&amp;rft.date=2015-06-12&amp;rft.au=Stephen+R.+Bourne&amp;rft_id=https%3A%2F%2Fwww.bsdcan.org%2F2015%2Fschedule%2Fattachments%2F306_srbBSDCan2015.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-Dijkstra,_1976-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-Dijkstra,_1976_19-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFEdsger_W._Dijkstra1975" class="citation web cs1">Edsger W. Dijkstra (27 January 1975). <a rel="nofollow" class="external text" href="https://www.cs.utexas.edu/~EWD/ewd04xx/EWD472.PDF">"Guarded commands, non-determinacy and formal derivation of programs"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2025</span>. <q><span class="cs1-kern-left"></span>'Guarded command,' a statement list prefixed by a Boolean expression: only when this boolean expression is initially true, is the statement list eligible for execution.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Guarded+commands%2C+non-determinacy+and+formal+derivation+of+programs&amp;rft.date=1975-01-27&amp;rft.au=Edsger+W.+Dijkstra&amp;rft_id=https%3A%2F%2Fwww.cs.utexas.edu%2F~EWD%2Fewd04xx%2FEWD472.PDF&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Multicians,_Unix-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-Multicians,_Unix_20-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.multicians.org/unix.html">Multicians, Unix</a></span> </li> <li id="cite_note-Multics_History,_info_segment_on_exec_com-21"><span class="mw-cite-backlink">^ <a href="#cite_ref-Multics_History,_info_segment_on_exec_com_21-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Multics_History,_info_segment_on_exec_com_21-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://web.mit.edu/multics-history/source/Multics/doc/info_segments/exec_com.info">Multics History, info segment on exec_com</a></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external free" href="https://v6sh.org/">https://v6sh.org/</a> V6 Sh History</span> </li> <li id="cite_note-NIST,_ASCII_Publication,_PDF_c1977-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-NIST,_ASCII_Publication,_PDF_c1977_23-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub1-2-1977.pdf">NIST, ASCII Publication, PDF c1977</a></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://sourceforge.net/p/gnv/wiki/InstallingGNVPackages/">"Installing the new GNU packages"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20201003182204/https://sourceforge.net/p/gnv/wiki/InstallingGNVPackages/">Archived</a> from the original on 3 October 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">4 September</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Installing+the+new+GNU+packages&amp;rft_id=https%3A%2F%2Fsourceforge.net%2Fp%2Fgnv%2Fwiki%2FInstallingGNVPackages%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-POSIX_Impact-25"><span class="mw-cite-backlink">^ <a href="#cite_ref-POSIX_Impact_25-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-POSIX_Impact_25-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-POSIX_Impact_25-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://sites.google.com/site/jimisaak/posix-impact">POSIX Impact</a></span> </li> <li id="cite_note-Usenix_&#39;;login:&#39;_Feb_2007-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-Usenix_&#39;;login:&#39;_Feb_2007_26-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.usenix.org/legacy/bodinfo/login0207.html">Usenix ';login:' Feb 2007</a></span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFBrian_Fox1996" class="citation cs2">Brian Fox (29 August 1996), <a rel="nofollow" class="external text" href="http://ftp.gnu.org/gnu/bash/bash-1.14.7.tar.gz"><i>shell.c</i></a>, <a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a>, <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180928193215/http://ftp.gnu.org/gnu/bash/bash-1.14.7.tar.gz">archived</a> from the original on 28 September 2018<span class="reference-accessdate">, retrieved <span class="nowrap">1 November</span> 2010</span>, <q>Birthdate: Sunday, January 10th, 1988. Initial author: Brian Fox</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=shell.c&amp;rft.pub=Free+Software+Foundation&amp;rft.date=1996-08-29&amp;rft.au=Brian+Fox&amp;rft_id=http%3A%2F%2Fftp.gnu.org%2Fgnu%2Fbash%2Fbash-1.14.7.tar.gz&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-GNUBSD-28"><span class="mw-cite-backlink">^ <a href="#cite_ref-GNUBSD_28-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-GNUBSD_28-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFRichard_Stallman_(forwarded_with_comments_by_Chet_Ramey)1988" class="citation newsgroup cs1"><a href="/wiki/Richard_Stallman" title="Richard Stallman">Richard Stallman</a> (forwarded with comments by Chet Ramey) (10 February 1988). <a rel="nofollow" class="external text" href="https://groups.google.com/g/comp.unix.questions/c/iNjWwkyroR8/m/yedr9yDWSuQJ">"GNU + BSD =&#160;?"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:comp.unix.questions">comp.unix.questions</a>. <a href="/wiki/Usenet_(identifier)" class="mw-redirect" title="Usenet (identifier)">Usenet:</a>&#160;<a rel="nofollow" class="external text" href="news:2362@mandrill.CWRU.Edu">2362@mandrill.CWRU.Edu</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20211228023030/https://groups.google.com/g/comp.unix.questions/c/iNjWwkyroR8/m/yedr9yDWSuQJ">Archived</a> from the original on 28 December 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">28 December</span> 2021</span>. <q>For a year and a half, the GNU shell was "just about done". The author made repeated promises to deliver what he had done, and never kept them. Finally I could no longer believe he would ever deliver anything. So Foundation staff member Brian Fox is now implementing an imitation of the Bourne shell.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=GNU+%2B+BSD+%3D+%3F&amp;rft.pub=comp.unix.questions&amp;rft.date=1988-02-10&amp;rft_id=news%3A2362%40mandrill.CWRU.Edu%23id-name%3DUsenet%3A&amp;rft.au=Richard+Stallman+%28forwarded+with+comments+by+Chet+Ramey%29&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fg%2Fcomp.unix.questions%2Fc%2FiNjWwkyroR8%2Fm%2Fyedr9yDWSuQJ&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFRichard_Stallman2010" class="citation web cs1"><a href="/wiki/Richard_Stallman" title="Richard Stallman">Richard Stallman</a> (3 October 2010). <a rel="nofollow" class="external text" href="https://www.gnu.org/gnu/thegnuproject.html">"About the GNU Project"</a>. <a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110424064815/https://www.gnu.org/gnu/thegnuproject.html">Archived</a> from the original on 24 April 2011<span class="reference-accessdate">. Retrieved <span class="nowrap">21 March</span> 2011</span>. <q>Free Software Foundation employees have written and maintained a number of GNU software packages. Two notable ones are the C library and the shell. ... We funded development of these programs because the GNU Project was not just about tools or a development environment. Our goal was a complete operating system, and these programs were needed for that goal.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=About+the+GNU+Project&amp;rft.pub=Free+Software+Foundation&amp;rft.date=2010-10-03&amp;rft.au=Richard+Stallman&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fgnu%2Fthegnuproject.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-stallman.org_posix-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-stallman.org_posix_30-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://stallman.org/articles/posix.html">stallman.org POSIX</a></span> </li> <li id="cite_note-POSIX_Backgrounder-31"><span class="mw-cite-backlink">^ <a href="#cite_ref-POSIX_Backgrounder_31-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-POSIX_Backgrounder_31-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.opengroup.org/austin/papers/backgrounder.html">POSIX Backgrounder</a></span> </li> <li id="cite_note-Mascheck,_Ash_Variants-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-Mascheck,_Ash_Variants_32-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.in-ulm.de/~mascheck/various/ash/">Mascheck, Ash Variants</a></span> </li> <li id="cite_note-Evolution_of_shells_in_Linux-33"><span class="mw-cite-backlink">^ <a href="#cite_ref-Evolution_of_shells_in_Linux_33-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Evolution_of_shells_in_Linux_33-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.ibm.com/tutorials/l-linux-shells/">"Evolution of shells in Linux"</a>. 9 December 2011.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Evolution+of+shells+in+Linux&amp;rft.date=2011-12-09&amp;rft_id=https%3A%2F%2Fdeveloper.ibm.com%2Ftutorials%2Fl-linux-shells%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFlen_(g...@prep.ai.mit.edu)1993" class="citation newsgroup cs1">len (g...@prep.ai.mit.edu) (20 April 1993). <a rel="nofollow" class="external text" href="https://groups.google.com/group/gnu.misc.discuss/msg/4f42c739cd7e8bd8">"January 1993 GNU's Bulletin"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:gnu.announce">gnu.announce</a>. <a href="/wiki/Usenet_(identifier)" class="mw-redirect" title="Usenet (identifier)">Usenet:</a>&#160;<a rel="nofollow" class="external text" href="news:gnusenet930421bulletin@prep.ai.mit.edu">gnusenet930421bulletin@prep.ai.mit.edu</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302213455/https://groups.google.com/forum/">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">28 October</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=January+1993+GNU%27s+Bulletin&amp;rft.pub=gnu.announce&amp;rft.date=1993-04-20&amp;rft_id=news%3Agnusenet930421bulletin%40prep.ai.mit.edu%23id-name%3DUsenet%3A&amp;rft.au=len+%28g...%40prep.ai.mit.edu%29&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgnu.misc.discuss%2Fmsg%2F4f42c739cd7e8bd8&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Bourne_shell_grammar-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-Bourne_shell_grammar_35-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFRamey1994" class="citation web cs1">Ramey, Chet (1 August 1994). <a rel="nofollow" class="external text" href="http://www.linuxjournal.com/article/2800#N0xa50890.0xb46380">"Bash - the GNU shell (Reflections and Lessons Learned)"</a>. <i><a href="/wiki/Linux_Journal" title="Linux Journal">Linux Journal</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20081205082152/http://www.linuxjournal.com/article/2800">Archived</a> from the original on 5 December 2008<span class="reference-accessdate">. Retrieved <span class="nowrap">13 November</span> 2008</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Linux+Journal&amp;rft.atitle=Bash+-+the+GNU+shell+%28Reflections+and+Lessons+Learned%29&amp;rft.date=1994-08-01&amp;rft.aulast=Ramey&amp;rft.aufirst=Chet&amp;rft_id=http%3A%2F%2Fwww.linuxjournal.com%2Farticle%2F2800%23N0xa50890.0xb46380&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-36">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFChet_Ramey2010" class="citation cs2">Chet Ramey (31 October 2010), <a rel="nofollow" class="external text" href="https://www.scribd.com/doc/40556434/2010-10-31-Chet-Ramey-Early-Bash-Dates"><i>Dates in your Computerworld interview</i></a>, <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120720124341/http://www.scribd.com/doc/40556434/2010-10-31-Chet-Ramey-Early-Bash-Dates">archived</a> from the original on 20 July 2012<span class="reference-accessdate">, retrieved <span class="nowrap">31 October</span> 2010</span></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Dates+in+your+Computerworld+interview&amp;rft.date=2010-10-31&amp;rft.au=Chet+Ramey&amp;rft_id=https%3A%2F%2Fwww.scribd.com%2Fdoc%2F40556434%2F2010-10-31-Chet-Ramey-Early-Bash-Dates&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFHamilton2008" class="citation news cs1">Hamilton, Naomi (30 March 2008). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161108230747/http://www.computerworld.com.au/article/222764/">"The A-Z of Programming Languages: BASH/Bourne-Again Shell"</a>. <i><a href="/wiki/Computerworld" title="Computerworld">Computerworld</a></i>. Archived from <a rel="nofollow" class="external text" href="http://www.computerworld.com.au/article/222764/">the original</a> on 8 November 2016<span class="reference-accessdate">. Retrieved <span class="nowrap">1 March</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Computerworld&amp;rft.atitle=The+A-Z+of+Programming+Languages%3A+BASH%2FBourne-Again+Shell&amp;rft.date=2008-03-30&amp;rft.aulast=Hamilton&amp;rft.aufirst=Naomi&amp;rft_id=http%3A%2F%2Fwww.computerworld.com.au%2Farticle%2F222764%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFRamey2021" class="citation web cs1">Ramey, Chet (20 April 2021). <a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bashtop.html">"The GNU Bourne-Again Shell"</a>. <i>Technology Infrastructure Services</i>. <a href="/wiki/Case_Western_Reserve_University" title="Case Western Reserve University">Case Western Reserve University</a><span class="reference-accessdate">. Retrieved <span class="nowrap">1 March</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Technology+Infrastructure+Services&amp;rft.atitle=The+GNU+Bourne-Again+Shell&amp;rft.date=2021-04-20&amp;rft.aulast=Ramey&amp;rft.aufirst=Chet&amp;rft_id=https%3A%2F%2Ftiswww.case.edu%2Fphp%2Fchet%2Fbash%2Fbashtop.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFChet_Ramey1989" class="citation newsgroup cs1">Chet Ramey (12 June 1989). <a rel="nofollow" class="external text" href="https://groups.google.com/group/gnu.bash.bug/msg/1fc7b688f5d44438?hl=en">"Bash 0.99 fixes &amp; improvements"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:gnu.bash.bug">gnu.bash.bug</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121110194014/http://groups.google.com/group/gnu.bash.bug/msg/1fc7b688f5d44438?hl=en">Archived</a> from the original on 10 November 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">1 November</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bash+0.99+fixes+%26+improvements&amp;rft.pub=gnu.bash.bug&amp;rft.date=1989-06-12&amp;rft.au=Chet+Ramey&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgnu.bash.bug%2Fmsg%2F1fc7b688f5d44438%3Fhl%3Den&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFChet_Ramey1989" class="citation newsgroup cs1">Chet Ramey (24 July 1989). <a rel="nofollow" class="external text" href="https://groups.google.com/group/gnu.bash.bug/msg/072a03645663caea?hl=en">"Some bash-1.02 fixes"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:gnu.bash.bug">gnu.bash.bug</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121110194034/http://groups.google.com/group/gnu.bash.bug/msg/072a03645663caea?hl=en">Archived</a> from the original on 10 November 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">30 October</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Some+bash-1.02+fixes&amp;rft.pub=gnu.bash.bug&amp;rft.date=1989-07-24&amp;rft.au=Chet+Ramey&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgnu.bash.bug%2Fmsg%2F072a03645663caea%3Fhl%3Den&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFBrian_Fox1990" class="citation newsgroup cs1">Brian Fox (2 March 1990). <a rel="nofollow" class="external text" href="https://groups.google.com/group/gnu.bash.bug/msg/e6112ccc8866e2f4?hl=en">"Availability of bash 1.05"</a>. <a href="/wiki/Usenet_newsgroup" title="Usenet newsgroup">Newsgroup</a>:&#160;<a rel="nofollow" class="external text" href="news:gnu.bash.bug">gnu.bash.bug</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121110194052/http://groups.google.com/group/gnu.bash.bug/msg/e6112ccc8866e2f4?hl=en">Archived</a> from the original on 10 November 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">30 October</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Availability+of+bash+1.05&amp;rft.pub=gnu.bash.bug&amp;rft.date=1990-03-02&amp;rft.au=Brian+Fox&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgnu.bash.bug%2Fmsg%2Fe6112ccc8866e2f4%3Fhl%3Den&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFBresnahanBlum2015" class="citation book cs1">Bresnahan, Christine; Blum, Richard (April 2015). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=2P3zBgAAQBAJ&amp;q=%22most+popular%22+linux+shell&amp;pg=PA5"><i>CompTIA Linux+ Powered by Linux Professional Institute Study Guide: Exam LX0-103 and Exam LX0-104</i></a> (3rd&#160;ed.). John Wiley &amp; Sons, Inc. p.&#160;5. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-1-119-02122-3" title="Special:BookSources/978-1-119-02122-3"><bdi>978-1-119-02122-3</bdi></a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212409/https://books.google.com/books?id=2P3zBgAAQBAJ&amp;q=%22most+popular%22+linux+shell&amp;pg=PA5">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">6 June</span> 2016</span>. <q>In Linux, most users run bash because it is the most popular shell.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=CompTIA+Linux%2B+Powered+by+Linux+Professional+Institute+Study+Guide%3A+Exam+LX0-103+and+Exam+LX0-104&amp;rft.pages=5&amp;rft.edition=3rd&amp;rft.pub=John+Wiley+%26+Sons%2C+Inc.&amp;rft.date=2015-04&amp;rft.isbn=978-1-119-02122-3&amp;rft.aulast=Bresnahan&amp;rft.aufirst=Christine&amp;rft.au=Blum%2C+Richard&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3D2P3zBgAAQBAJ%26q%3D%2522most%2Bpopular%2522%2Blinux%2Bshell%26pg%3DPA5&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFDaneshJang2006" class="citation book cs1">Danesh, Arman; Jang, Michael (February 2006). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=tIjrVYbZmUAC&amp;q=bash+most+popular+unix+shell&amp;pg=PA363"><i>Mastering Linux</i></a>. John Wiley &amp; Sons, Inc. p.&#160;363. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-7821-5277-7" title="Special:BookSources/978-0-7821-5277-7"><bdi>978-0-7821-5277-7</bdi></a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212410/https://books.google.com/books?id=tIjrVYbZmUAC&amp;q=bash+most+popular+unix+shell&amp;pg=PA363">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">6 June</span> 2016</span>. <q>The Bourne Again Shell (bash) is the most common shell installed with Linux distributions.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Mastering+Linux&amp;rft.pages=363&amp;rft.pub=John+Wiley+%26+Sons%2C+Inc.&amp;rft.date=2006-02&amp;rft.isbn=978-0-7821-5277-7&amp;rft.aulast=Danesh&amp;rft.aufirst=Arman&amp;rft.au=Jang%2C+Michael&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DtIjrVYbZmUAC%26q%3Dbash%2Bmost%2Bpopular%2Bunix%2Bshell%26pg%3DPA363&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Portable_Character_Set-40"><span class="mw-cite-backlink">^ <a href="#cite_ref-Portable_Character_Set_40-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Portable_Character_Set_40-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap06.html">Portable Character Set</a></span> </li> <li id="cite_note-Debian_Wiki:_Shell-41"><span class="mw-cite-backlink">^ <a href="#cite_ref-Debian_Wiki:_Shell_41-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Debian_Wiki:_Shell_41-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://wiki.debian.org/Shell">Debian Wiki: Shell</a></span> </li> <li id="cite_note-Forbes,_A_Desktop_Alternative-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-Forbes,_A_Desktop_Alternative_42-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.forbes.com/1999/01/25/feat.html">"A desktop alternative"</a>. <i>Forbes</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Forbes&amp;rft.atitle=A+desktop+alternative&amp;rft_id=https%3A%2F%2Fwww.forbes.com%2F1999%2F01%2F25%2Ffeat.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-43"><span class="mw-cite-backlink"><b><a href="#cite_ref-43">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://testou.free.fr/www.beatjapan.org/mirror/www.be.com/documentation/user_docs/app_a_commandline.html">"Appendix A: Using the BeOS Command Line Shell"</a>. <i>testou.free.fr</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=testou.free.fr&amp;rft.atitle=Appendix+A%3A+Using+the+BeOS+Command+Line+Shell&amp;rft_id=http%3A%2F%2Ftestou.free.fr%2Fwww.beatjapan.org%2Fmirror%2Fwww.be.com%2Fdocumentation%2Fuser_docs%2Fapp_a_commandline.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Single_UNIX_Specification_v_3_-_Overview-44"><span class="mw-cite-backlink">^ <a href="#cite_ref-Single_UNIX_Specification_v_3_-_Overview_44-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Single_UNIX_Specification_v_3_-_Overview_44-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://unix.org/version3/overview.html">Single UNIX Specification v 3 - Overview</a></span> </li> <li id="cite_note-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-45">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2000-09/msg00000.html">Bug-bash, oldest email at lists.gnu.org: Re: Line-Edit mode is lost...</a></span> </li> <li id="cite_note-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-46">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2001-04/msg00047.html">Bug-bash, Bash-2.05 available for FTP</a></span> </li> <li id="cite_note-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-47">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.google.com/books/edition/Essential_Mac_OS_X_Panther_Server_Admini/zrI-U0KWj3cC?hl=en&amp;gbpv=1&amp;dq=bash&amp;pg=PA189&amp;printsec=frontcover">Essential Mac OS S Panther Server Administration, pg. 189</a></span> </li> <li id="cite_note-48"><span class="mw-cite-backlink"><b><a href="#cite_ref-48">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFFoster-JohnsonWelchAnderson2005" class="citation book cs1">Foster-Johnson, Eric; Welch, John C.; Anderson, Micah (April 2005). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=dwIRERUpQPEC&amp;q=bash+most+popular+unix+shell&amp;pg=PA6"><i>Beginning Shell Scripting</i></a>. John Wiley &amp; Sons, Inc. p.&#160;6. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-7645-9791-6" title="Special:BookSources/978-0-7645-9791-6"><bdi>978-0-7645-9791-6</bdi></a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212410/https://books.google.com/books?id=dwIRERUpQPEC&amp;q=bash+most+popular+unix+shell&amp;pg=PA6">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">6 June</span> 2016</span>. <q>Bash is by far the most popular shell and forms the default shell on Linux and Mac OSX systems.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Beginning+Shell+Scripting&amp;rft.pages=6&amp;rft.pub=John+Wiley+%26+Sons%2C+Inc.&amp;rft.date=2005-04&amp;rft.isbn=978-0-7645-9791-6&amp;rft.aulast=Foster-Johnson&amp;rft.aufirst=Eric&amp;rft.au=Welch%2C+John+C.&amp;rft.au=Anderson%2C+Micah&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DdwIRERUpQPEC%26q%3Dbash%2Bmost%2Bpopular%2Bunix%2Bshell%26pg%3DPA6&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-POSIX_FAQ_v_1.18-49"><span class="mw-cite-backlink">^ <a href="#cite_ref-POSIX_FAQ_v_1.18_49-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-POSIX_FAQ_v_1.18_49-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-POSIX_FAQ_v_1.18_49-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.opengroup.org/austin/papers/posix_faq.html">POSIX FAQ v 1.18</a></span> </li> <li id="cite_note-50"><span class="mw-cite-backlink"><b><a href="#cite_ref-50">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2004-07/msg00255.html">Bug-bash, Bash-3.0 available for FTP</a></span> </li> <li id="cite_note-POSIX-2004-51"><span class="mw-cite-backlink"><b><a href="#cite_ref-POSIX-2004_51-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/009695399/">POSIX-2004</a></span> </li> <li id="cite_note-52"><span class="mw-cite-backlink"><b><a href="#cite_ref-52">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2005-12/msg00018.html">Bug-bash, Bash-3.1 released</a></span> </li> <li id="cite_note-53"><span class="mw-cite-backlink"><b><a href="#cite_ref-53">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2006-10/msg00057.html">Bug-bash, Bash-3.2 available for FTP</a></span> </li> <li id="cite_note-54"><span class="mw-cite-backlink"><b><a href="#cite_ref-54">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2009-02/msg00164.html">"Bug-bash, Bash-4.0 available for FTP"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bug-bash%2C+Bash-4.0+available+for+FTP&amp;rft_id=https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fbug-bash%2F2009-02%2Fmsg00164.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-55"><span class="mw-cite-backlink"><b><a href="#cite_ref-55">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.haiku-os.org/news/2009-09-13_haiku_project_announces_availability_haiku_r1alpha_1">"Haiku Project Announces Availability of Haiku R1/Alpha 1"</a>. <i>Haiku Project</i>. 14 September 2009.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Haiku+Project&amp;rft.atitle=Haiku+Project+Announces+Availability+of+Haiku+R1%2FAlpha+1&amp;rft.date=2009-09-14&amp;rft_id=https%3A%2F%2Fwww.haiku-os.org%2Fnews%2F2009-09-13_haiku_project_announces_availability_haiku_r1alpha_1&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-56"><span class="mw-cite-backlink"><b><a href="#cite_ref-56">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.haiku-os.org/docs/userguide/en/applications/terminal.html">"Haiku User Guide: Terminal"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Haiku+User+Guide%3A+Terminal&amp;rft_id=https%3A%2F%2Fwww.haiku-os.org%2Fdocs%2Fuserguide%2Fen%2Fapplications%2Fterminal.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-57"><span class="mw-cite-backlink"><b><a href="#cite_ref-57">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.haiku-os.org/get-haiku/r1beta5/">"Get Haiku!"</a>. <i>Haiku Project</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Haiku+Project&amp;rft.atitle=Get+Haiku%21&amp;rft_id=https%3A%2F%2Fwww.haiku-os.org%2Fget-haiku%2Fr1beta5%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-58"><span class="mw-cite-backlink"><b><a href="#cite_ref-58">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2010-01/msg00000.html">"Bug-bash, Bash-4.1 available for FTP"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bug-bash%2C+Bash-4.1+available+for+FTP&amp;rft_id=https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fbug-bash%2F2010-01%2Fmsg00000.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-59"><span class="mw-cite-backlink"><b><a href="#cite_ref-59">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki.debian.org/Shell">"<span class="cs1-kern-left"></span>"Debian Wiki: Shell"<span class="cs1-kern-right"></span>"</a>. <q>Dash lacks many of the features one would expect in an interactive shell, which allows it to be faster and more memory efficient than Bash.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=%22Debian+Wiki%3A+Shell%22&amp;rft_id=https%3A%2F%2Fwiki.debian.org%2FShell&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-60"><span class="mw-cite-backlink"><b><a href="#cite_ref-60">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2011-02/msg00134.html">"Bug-bash, Bash-4.2 available for FTP"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bug-bash%2C+Bash-4.2+available+for+FTP&amp;rft_id=https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fbug-bash%2F2011-02%2Fmsg00134.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-61"><span class="mw-cite-backlink"><b><a href="#cite_ref-61">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.oracle.com/cd/E23824_01/html/E24456/userenv-1.html">"User Environment Feature Changes"</a>. Oracle. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180612144748/https://docs.oracle.com/cd/E23824_01/html/E24456/userenv-1.html">Archived</a> from the original on 12 June 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">8 June</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=User+Environment+Feature+Changes&amp;rft.pub=Oracle&amp;rft_id=https%3A%2F%2Fdocs.oracle.com%2Fcd%2FE23824_01%2Fhtml%2FE24456%2Fuserenv-1.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-62"><span class="mw-cite-backlink"><b><a href="#cite_ref-62">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/">"POSIX-2013"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=POSIX-2013&amp;rft_id=https%3A%2F%2Fpubs.opengroup.org%2Fonlinepubs%2F9699919799.2013edition%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-63"><span class="mw-cite-backlink"><b><a href="#cite_ref-63">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2014-02/msg00081.html">Bug-bash, Bash-4.3 available for FTP</a></span> </li> <li id="cite_note-Mitre,_CVE-2014-6271-64"><span class="mw-cite-backlink"><b><a href="#cite_ref-Mitre,_CVE-2014-6271_64-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2014-6271">Mitre, CVE-2014-6271</a></span> </li> <li id="cite_note-Bug-bash,_Bash_3.0_Official_Patch_1-65"><span class="mw-cite-backlink"><b><a href="#cite_ref-Bug-bash,_Bash_3.0_Official_Patch_1_65-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2004-09/msg00083.html">Bug-bash, Bash 3.0 Official Patch 1</a></span> </li> <li id="cite_note-Windows_10_Insider_Preview_Build_14332-66"><span class="mw-cite-backlink"><b><a href="#cite_ref-Windows_10_Insider_Preview_Build_14332_66-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://blogs.windows.com/windows-insider/2016/04/26/announcing-windows-10-insider-preview-build-14332/">Windows 10 Insider Preview Build 14332</a></span> </li> <li id="cite_note-67"><span class="mw-cite-backlink"><b><a href="#cite_ref-67">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.windowscentral.com/how-install-bash-shell-command-line-windows-10">"How to install Bash shell command-line tool on Windows 10"</a>. 28 September 2016. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20161120213017/http://www.windowscentral.com/how-install-bash-shell-command-line-windows-10">Archived</a> from the original on 20 November 2016<span class="reference-accessdate">. Retrieved <span class="nowrap">20 November</span> 2016</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=How+to+install+Bash+shell+command-line+tool+on+Windows+10&amp;rft.date=2016-09-28&amp;rft_id=http%3A%2F%2Fwww.windowscentral.com%2Fhow-install-bash-shell-command-line-windows-10&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/Microsoft/BashOnWindows/issues/107">"Missing source code - GPL compliance? · Issue #107 · Microsoft/WSL"</a>. <i>GitHub</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190924163108/https://github.com/microsoft/WSL/issues/107">Archived</a> from the original on 24 September 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">8 July</span> 2016</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GitHub&amp;rft.atitle=Missing+source+code+-+GPL+compliance%3F+%C2%B7+Issue+%23107+%C2%B7+Microsoft%2FWSL&amp;rft_id=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBashOnWindows%2Fissues%2F107&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li style="margin-bottom:.5em; display:block;"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.softpedia.com/get/System/System-Miscellaneous/GNU-Bash.shtml">"GNU Bash"</a>. <i><a href="/wiki/Softpedia" title="Softpedia">Softpedia</a></i>. SoftNews. 23 January 2010. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171021004857/http://www.softpedia.com/get/System/System-Miscellaneous/GNU-Bash.shtml">Archived</a> from the original on 21 October 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">9 April</span> 2016</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Softpedia&amp;rft.atitle=GNU+Bash&amp;rft.date=2010-01-23&amp;rft_id=http%3A%2F%2Fwww.softpedia.com%2Fget%2FSystem%2FSystem-Miscellaneous%2FGNU-Bash.shtml&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-POSIX-2016-68"><span class="mw-cite-backlink"><b><a href="#cite_ref-POSIX-2016_68-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9699919799.2016edition/">POSIX-2016</a></span> </li> <li id="cite_note-69"><span class="mw-cite-backlink"><b><a href="#cite_ref-69">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.arcanoae.com/wiki/arcaos/compatibility-subsystems/">"Compatibility Subsystems"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200923001119/https://www.arcanoae.com/wiki/arcaos/compatibility-subsystems/">Archived</a> from the original on 23 September 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">4 September</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Compatibility+Subsystems&amp;rft_id=https%3A%2F%2Fwww.arcanoae.com%2Fwiki%2Farcaos%2Fcompatibility-subsystems%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-POSIX-2018-70"><span class="mw-cite-backlink"><b><a href="#cite_ref-POSIX-2018_70-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/">POSIX-2018</a></span> </li> <li id="cite_note-scriptingosx.com,_Moving_to_Zsh-71"><span class="mw-cite-backlink">^ <a href="#cite_ref-scriptingosx.com,_Moving_to_Zsh_71-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-scriptingosx.com,_Moving_to_Zsh_71-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://scriptingosx.com/2019/06/moving-to-zsh/?form=MG0AV3">scriptingosx.com, Moving to Zsh</a></span> </li> <li id="cite_note-Apple_Support_-_Use_zsh_as_the_default_shell_on_your_Mac-72"><span class="mw-cite-backlink"><b><a href="#cite_ref-Apple_Support_-_Use_zsh_as_the_default_shell_on_your_Mac_72-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://support.apple.com/en-us/HT208050">"Apple Support - Use zsh as the default shell on your Mac"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20191202143802/https://support.apple.com/en-us/HT208050">Archived</a> from the original on 2 December 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">1 July</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Apple+Support+-+Use+zsh+as+the+default+shell+on+your+Mac&amp;rft_id=https%3A%2F%2Fsupport.apple.com%2Fen-us%2FHT208050&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Verge_-_Apple_replaces_bash_with_zsh...-73"><span class="mw-cite-backlink"><b><a href="#cite_ref-Verge_-_Apple_replaces_bash_with_zsh..._73-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFWarren2019" class="citation web cs1">Warren, Tom (4 June 2019). <a rel="nofollow" class="external text" href="https://www.theverge.com/2019/6/4/18651872/apple-macos-catalina-zsh-bash-shell-replacement-features">"Apple replaces bash with zsh as the default shell in macOS Catalina"</a>. <i>The Verge</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190610051842/https://www.theverge.com/2019/6/4/18651872/apple-macos-catalina-zsh-bash-shell-replacement-features">Archived</a> from the original on 10 June 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">13 June</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+Verge&amp;rft.atitle=Apple+replaces+bash+with+zsh+as+the+default+shell+in+macOS+Catalina&amp;rft.date=2019-06-04&amp;rft.aulast=Warren&amp;rft.aufirst=Tom&amp;rft_id=https%3A%2F%2Fwww.theverge.com%2F2019%2F6%2F4%2F18651872%2Fapple-macos-catalina-zsh-bash-shell-replacement-features&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-The_Next_Web_-_Why_Does_MacOS_Catalina_Use_zsh...-74"><span class="mw-cite-backlink"><b><a href="#cite_ref-The_Next_Web_-_Why_Does_MacOS_Catalina_Use_zsh..._74-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFHughes2019" class="citation web cs1">Hughes, Matthew (4 June 2019). <a rel="nofollow" class="external text" href="https://thenextweb.com/dd/2019/06/04/why-does-macos-catalina-use-zsh-instead-of-bash-licensing/">"Why does macOS Catalina use Zsh instead of Bash? Licensing"</a>. <i>The Next Web</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20201231231721/https://thenextweb.com/dd/2019/06/04/why-does-macos-catalina-use-zsh-instead-of-bash-licensing/">Archived</a> from the original on 31 December 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">12 January</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+Next+Web&amp;rft.atitle=Why+does+macOS+Catalina+use+Zsh+instead+of+Bash%3F+Licensing&amp;rft.date=2019-06-04&amp;rft.aulast=Hughes&amp;rft.aufirst=Matthew&amp;rft_id=https%3A%2F%2Fthenextweb.com%2Fdd%2F2019%2F06%2F04%2Fwhy-does-macos-catalina-use-zsh-instead-of-bash-licensing%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-75"><span class="mw-cite-backlink"><b><a href="#cite_ref-75">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00063.html">Bug-bash, Bash-5.0 release available</a></span> </li> <li id="cite_note-76"><span class="mw-cite-backlink"><b><a href="#cite_ref-76">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.kali.org/blog/kali-linux-2020-4-release/#zsh-shell-by-default">Kali Linux 2020.4, zsh by default</a></span> </li> <li id="cite_note-Bash-5.1_release_available-77"><span class="mw-cite-backlink"><b><a href="#cite_ref-Bash-5.1_release_available_77-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00002.html">Bash-5.1 release available</a></span> </li> <li id="cite_note-78"><span class="mw-cite-backlink"><b><a href="#cite_ref-78">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00056.html">Bug-bash, Bash-5.2 Release available</a></span> </li> <li id="cite_note-Github:_WSL_2.0.0-79"><span class="mw-cite-backlink"><b><a href="#cite_ref-Github:_WSL_2.0.0_79-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://github.com/microsoft/WSL/releases/tag/2.0.0">Github: WSL 2.0.0</a> </span> </li> <li id="cite_note-How_to_Install_WSL_on_Windows_11-80"><span class="mw-cite-backlink"><b><a href="#cite_ref-How_to_Install_WSL_on_Windows_11_80-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFHoffman2021" class="citation web cs1">Hoffman, Chris (30 July 2021). <a rel="nofollow" class="external text" href="https://www.howtogeek.com/744328/how-to-install-the-windows-subsystem-for-linux-on-windows-11/">"How to Install the Windows Subsystem for Linux on Windows 11"</a>. <i>How-To Geek</i><span class="reference-accessdate">. Retrieved <span class="nowrap">12 October</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=How-To+Geek&amp;rft.atitle=How+to+Install+the+Windows+Subsystem+for+Linux+on+Windows+11&amp;rft.date=2021-07-30&amp;rft.aulast=Hoffman&amp;rft.aufirst=Chris&amp;rft_id=https%3A%2F%2Fwww.howtogeek.com%2F744328%2Fhow-to-install-the-windows-subsystem-for-linux-on-windows-11%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-81"><span class="mw-cite-backlink"><b><a href="#cite_ref-81">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Command-Execution-Environment.html">"Command Execution Environment (Bash Reference Manual)"</a>. <i>www.gnu.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Command+Execution+Environment+%28Bash+Reference+Manual%29&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FCommand-Execution-Environment.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span>/</span> </li> <li id="cite_note-82"><span class="mw-cite-backlink"><b><a href="#cite_ref-82">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20180315115230/http://www.gnu.org/software/bash/manual/bash.html#Programmable-Completion">"Brace Expansion (Bash Reference Manual)"</a>. <i>www.gnu.org</i>. Archived from <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html">the original</a> on 15 March 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">10 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Brace+Expansion+%28Bash+Reference+Manual%29&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FBrace-Expansion.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-83"><span class="mw-cite-backlink"><b><a href="#cite_ref-83">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/bash.html#Programmable-Completion">"Bash Reference Manual: Programmable Completion"</a>. <i><a href="/wiki/GNU_Project" title="GNU Project">GNU Project</a></i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GNU+Project&amp;rft.atitle=Bash+Reference+Manual%3A+Programmable+Completion&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fbash.html%23Programmable-Completion&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-84"><span class="mw-cite-backlink"><b><a href="#cite_ref-84">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html">"Debugging Bash scripts"</a>. <i>tldp.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181104185300/http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html">Archived</a> from the original on 4 November 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">20 November</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tldp.org&amp;rft.atitle=Debugging+Bash+scripts&amp;rft_id=http%3A%2F%2Ftldp.org%2FLDP%2FBash-Beginners-Guide%2Fhtml%2Fsect_02_03.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-85"><span class="mw-cite-backlink"><b><a href="#cite_ref-85">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html">"The Set Builtin (Bash Reference Manual)"</a>. <i>www.gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">10 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=The+Set+Builtin+%28Bash+Reference+Manual%29&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FThe-Set-Builtin.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-86"><span class="mw-cite-backlink"><b><a href="#cite_ref-86">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki-dev.bash-hackers.org/scripting/bashchanges">"Bash changes &#91;Bash Hackers Wiki (DEV 20200708T2203)&#93;"</a>. <i>wiki-dev.bash-hackers.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190923203509/https://wiki-dev.bash-hackers.org/scripting/bashchanges">Archived</a> from the original on 23 September 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">23 September</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=wiki-dev.bash-hackers.org&amp;rft.atitle=Bash+changes+%5BBash+Hackers+Wiki+%28DEV+20200708T2203%29%5D&amp;rft_id=https%3A%2F%2Fwiki-dev.bash-hackers.org%2Fscripting%2Fbashchanges&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-87"><span class="mw-cite-backlink"><b><a href="#cite_ref-87">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html">"Bourne Shell Builtins (Bash Reference Manual)"</a>. <i>www.gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">10 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Bourne+Shell+Builtins+%28Bash+Reference+Manual%29&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FBourne-Shell-Builtins.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-88"><span class="mw-cite-backlink"><b><a href="#cite_ref-88">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-History-Builtins">"Bash Reference Manual"</a>. <i>www.gnu.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190915123105/http://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-History-Builtins">Archived</a> from the original on 15 September 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">15 September</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Bash+Reference+Manual&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsavannah-checkouts%2Fgnu%2Fbash%2Fmanual%2Fbash.html%23Bash-History-Builtins&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-89"><span class="mw-cite-backlink"><b><a href="#cite_ref-89">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.caliban.org/bash/index.shtml">"Working more productively with bash 2.x/3.x"</a>. <i>www.caliban.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180629230903/http://www.caliban.org/bash/index.shtml">Archived</a> from the original on 29 June 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">21 June</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.caliban.org&amp;rft.atitle=Working+more+productively+with+bash+2.x%2F3.x&amp;rft_id=http%3A%2F%2Fwww.caliban.org%2Fbash%2Findex.shtml&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-GNUBASHREF-90"><span class="mw-cite-backlink"><b><a href="#cite_ref-GNUBASHREF_90-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation cs2"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html">"6.11 Bash POSIX Mode"</a>, <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/index.html"><i>The GNU Bash Reference Manual, for Bash, Version 4.1</i></a>, 23 December 2009, <a rel="nofollow" class="external text" href="https://web.archive.org/web/20101203065400/https://www.gnu.org/software/bash/manual/html_node/index.html">archived</a> from the original on 3 December 2010<span class="reference-accessdate">, retrieved <span class="nowrap">26 October</span> 2010</span></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=6.11+Bash+POSIX+Mode&amp;rft.btitle=The+GNU+Bash+Reference+Manual%2C+for+Bash%2C+Version+4.1&amp;rft.date=2009-12-23&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FBash-POSIX-Mode.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-91"><span class="mw-cite-backlink"><b><a href="#cite_ref-91">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.tldp.org/LDP/abs/html/bashver3.html#BASH3REF">"Advanced Bash-Scripting Guide"</a>. <i>www.tldp.org</i>. Section 37.2 (Bash, version 3). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170505161903/http://tldp.org/LDP/abs/html/bashver3.html#BASH3REF">Archived</a> from the original on 5 May 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">5 March</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.tldp.org&amp;rft.atitle=Advanced+Bash-Scripting+Guide&amp;rft.pages=Section+37.2+%28Bash%2C+version+3%29&amp;rft_id=http%3A%2F%2Fwww.tldp.org%2FLDP%2Fabs%2Fhtml%2Fbashver3.html%23BASH3REF&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-92"><span class="mw-cite-backlink"><b><a href="#cite_ref-92">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://tldp.org/LDP/abs/html/bashver4.html">"Bash, version 4"</a>. <i>tldp.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180701001653/http://www.tldp.org/LDP/abs/html/bashver4.html">Archived</a> from the original on 1 July 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">25 June</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tldp.org&amp;rft.atitle=Bash%2C+version+4&amp;rft_id=http%3A%2F%2Ftldp.org%2FLDP%2Fabs%2Fhtml%2Fbashver4.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-93"><span class="mw-cite-backlink"><b><a href="#cite_ref-93">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Arrays.html">"Arrays (Bash Reference Manual)"</a>. <i>www.gnu.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180711142941/http://www.gnu.org/software/bash/manual/html_node/Arrays.html">Archived</a> from the original on 11 July 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">4 July</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Arrays+%28Bash+Reference+Manual%29&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fhtml_node%2FArrays.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-94"><span class="mw-cite-backlink"><b><a href="#cite_ref-94">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://apple.stackexchange.com/questions/193411/update-bash-to-version-4-0-on-osx">"macos - Update bash to version 4.0 on OSX"</a>. <i>Ask Different</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180625213216/https://apple.stackexchange.com/questions/193411/update-bash-to-version-4-0-on-osx">Archived</a> from the original on 25 June 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">25 June</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Ask+Different&amp;rft.atitle=macos+-+Update+bash+to+version+4.0+on+OSX&amp;rft_id=https%3A%2F%2Fapple.stackexchange.com%2Fquestions%2F193411%2Fupdate-bash-to-version-4-0-on-osx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-95"><span class="mw-cite-backlink"><b><a href="#cite_ref-95">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/bash.html#index-background">"Bash Reference Manual"</a>. <i>www.gnu.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180315115230/http://www.gnu.org/software/bash/manual/bash.html#index-background">Archived</a> from the original on 15 March 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">27 March</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Bash+Reference+Manual&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fbash%2Fmanual%2Fbash.html%23index-background&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-tldp-96"><span class="mw-cite-backlink">^ <a href="#cite_ref-tldp_96-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-tldp_96-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFMendel_Cooper" class="citation web cs1">Mendel Cooper. <a rel="nofollow" class="external text" href="http://tldp.org/LDP/abs/html/portabilityissues.html">"Portability Issues"</a>. <i>The Linux Documentation Project</i>. ibiblio.org. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120127105451/http://tldp.org/LDP/abs/html/portabilityissues.html">Archived</a> from the original on 27 January 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">26 January</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+Linux+Documentation+Project&amp;rft.atitle=Portability+Issues&amp;rft.au=Mendel+Cooper&amp;rft_id=http%3A%2F%2Ftldp.org%2FLDP%2Fabs%2Fhtml%2Fportabilityissues.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-deb-97"><span class="mw-cite-backlink">^ <a href="#cite_ref-deb_97-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-deb_97-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.debian.org/doc/debian-policy/ch-files.html#scripts">"10. Files"</a>. <i>Debian Policy Manual v4.5.0.2</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200512050159/https://www.debian.org/doc/debian-policy/ch-files.html#scripts">Archived</a> from the original on 12 May 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">11 May</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Debian+Policy+Manual+v4.5.0.2&amp;rft.atitle=10.+Files&amp;rft_id=https%3A%2F%2Fwww.debian.org%2Fdoc%2Fdebian-policy%2Fch-files.html%23scripts&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-98"><span class="mw-cite-backlink"><b><a href="#cite_ref-98">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.shell-tips.com/linux/how-to-format-date-and-time-in-linux-macos-and-bash/#using-the-gnu-date-command-line">"How To Format Date And Time In Linux, MacOS, And Bash?"</a>. <i>Shell Tips!</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200603230615/https://www.shell-tips.com/linux/how-to-format-date-and-time-in-linux-macos-and-bash/#using-the-gnu-date-command-line">Archived</a> from the original on 3 June 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">3 June</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Shell+Tips%21&amp;rft.atitle=How+To+Format+Date+And+Time+In+Linux%2C+MacOS%2C+And+Bash%3F&amp;rft_id=https%3A%2F%2Fwww.shell-tips.com%2Flinux%2Fhow-to-format-date-and-time-in-linux-macos-and-bash%2F%23using-the-gnu-date-command-line&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-checkbashisms,_ManKier_man_page-99"><span class="mw-cite-backlink">^ <a href="#cite_ref-checkbashisms,_ManKier_man_page_99-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-checkbashisms,_ManKier_man_page_99-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://www.mankier.com/1/checkbashisms">checkbashisms(1)</a></code></span>&#160;–&#160;<a href="/wiki/Linux" title="Linux">Linux</a> General Commands <a href="/wiki/Man_page" title="Man page">Manual</a></span> </li> <li id="cite_note-shellcheck,_ManKier_man_page-100"><span class="mw-cite-backlink">^ <a href="#cite_ref-shellcheck,_ManKier_man_page_100-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-shellcheck,_ManKier_man_page_100-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <span class="plainlinksneverexpand"><code><a rel="nofollow" class="external text" href="https://www.mankier.com/1/shellcheck">shellcheck(1)</a></code></span>&#160;–&#160;<a href="/wiki/Linux" title="Linux">Linux</a> General Commands <a href="/wiki/Man_page" title="Man page">Manual</a></span> </li> <li id="cite_note-101"><span class="mw-cite-backlink"><b><a href="#cite_ref-101">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/autoconf/manual/html_node/Portable-Shell.html">"Portable Shell"</a>. <i>Autoconf</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212413/https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.70/html_node/Portable-Shell.html">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Autoconf&amp;rft.atitle=Portable+Shell&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fautoconf%2Fmanual%2Fhtml_node%2FPortable-Shell.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-102"><span class="mw-cite-backlink"><b><a href="#cite_ref-102">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.drdobbs.com/i-almost-get-a-linux-editor-and-compiler/184404693">"I Almost Get a Linux Editor and Compiler"</a>. <i>Dr. Dobb's</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302212410/https://www.drdobbs.com/i-almost-get-a-linux-editor-and-compiler/184404693">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">12 September</span> 2020</span>. <q>But virtually all the configure and install scripts that come with open-source programs are written for bash, and if you want to understand those scripts, you have to know bash.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Dr.+Dobb%27s&amp;rft.atitle=I+Almost+Get+a+Linux+Editor+and+Compiler&amp;rft_id=http%3A%2F%2Fwww.drdobbs.com%2Fi-almost-get-a-linux-editor-and-compiler%2F184404693&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-103"><span class="mw-cite-backlink"><b><a href="#cite_ref-103">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2021-04/msg00172.html">"bug-bash archives, Re: Document that set -v inside case statements is special"</a>. 20 April 2021.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=bug-bash+archives%2C+Re%3A+Document+that+set+-v+inside+case+statements+is+special&amp;rft.date=2021-04-20&amp;rft_id=https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fbug-bash%2F2021-04%2Fmsg00172.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-104"><span class="mw-cite-backlink"><b><a href="#cite_ref-104">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bashref.html#Programmable-Completion">"Bash Reference Manual"</a>. <i>tiswww.case.edu</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tiswww.case.edu&amp;rft.atitle=Bash+Reference+Manual&amp;rft_id=https%3A%2F%2Ftiswww.case.edu%2Fphp%2Fchet%2Fbash%2Fbashref.html%23Programmable-Completion&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-105"><span class="mw-cite-backlink"><b><a href="#cite_ref-105">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.caliban.org/bash/index.shtml">"Working more productively with bash 2.x/3.x"</a>. <i>www.caliban.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180629230903/http://www.caliban.org/bash/index.shtml">Archived</a> from the original on 29 June 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">21 June</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.caliban.org&amp;rft.atitle=Working+more+productively+with+bash+2.x%2F3.x&amp;rft_id=http%3A%2F%2Fwww.caliban.org%2Fbash%2Findex.shtml&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-106"><span class="mw-cite-backlink"><b><a href="#cite_ref-106">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://ftp.swin.edu.au/gnu/bash/">"Index of /gnu/bash"</a>. <i>ftp.swin.edu.au</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200308104032/http://ftp.swin.edu.au/gnu/bash/">Archived</a> from the original on 8 March 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">15 September</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ftp.swin.edu.au&amp;rft.atitle=Index+of+%2Fgnu%2Fbash&amp;rft_id=https%3A%2F%2Fftp.swin.edu.au%2Fgnu%2Fbash%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-:1-107"><span class="mw-cite-backlink">^ <a href="#cite_ref-:1_107-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:1_107-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://tldp.org/LDP/abs/html/tabexpansion.html">"An Introduction to Programmable Completion"</a>. <i>tldp.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">21 January</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tldp.org&amp;rft.atitle=An+Introduction+to+Programmable+Completion&amp;rft_id=https%3A%2F%2Ftldp.org%2FLDP%2Fabs%2Fhtml%2Ftabexpansion.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-108"><span class="mw-cite-backlink"><b><a href="#cite_ref-108">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.hypexr.org/bash_tutorial.php#emacs">"BASH Help - A Bash Tutorial"</a>. Hypexr.org. 5 October 2012. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210302213519/http://www.hypexr.org/bash_tutorial.php#emacs">Archived</a> from the original on 2 March 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">21 July</span> 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=BASH+Help+-+A+Bash+Tutorial&amp;rft.pub=Hypexr.org&amp;rft.date=2012-10-05&amp;rft_id=http%3A%2F%2Fwww.hypexr.org%2Fbash_tutorial.php%23emacs&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-109"><span class="mw-cite-backlink"><b><a href="#cite_ref-109">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9699919799/">"The Open Group Base Specifications Issue 7, 2018 edition"</a>. <i>pubs.opengroup.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=pubs.opengroup.org&amp;rft.atitle=The+Open+Group+Base+Specifications+Issue+7%2C+2018+edition&amp;rft_id=https%3A%2F%2Fpubs.opengroup.org%2Fonlinepubs%2F9699919799%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-110"><span class="mw-cite-backlink"><b><a href="#cite_ref-110">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bash.html">"BASH(1) Manual Page"</a>. <i>tiswww.case.edu</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tiswww.case.edu&amp;rft.atitle=BASH%281%29+Manual+Page&amp;rft_id=https%3A%2F%2Ftiswww.case.edu%2Fphp%2Fchet%2Fbash%2Fbash.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-111"><span class="mw-cite-backlink"><b><a href="#cite_ref-111">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.0">"bash.0\doc - bash.git - bash"</a>. <i>git.savannah.gnu.org</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=git.savannah.gnu.org&amp;rft.atitle=bash.0%5Cdoc+-+bash.git+-+bash&amp;rft_id=https%3A%2F%2Fgit.savannah.gnu.org%2Fcgit%2Fbash.git%2Ftree%2Fdoc%2Fbash.0&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-auto-112"><span class="mw-cite-backlink">^ <a href="#cite_ref-auto_112-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-auto_112-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.gnu.org/savannah-checkouts/gnu/bash/bash.html">"Bash - GNU Project - Free Software Foundation"</a>. <i>www.gnu.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">10 January</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.gnu.org&amp;rft.atitle=Bash+-+GNU+Project+-+Free+Software+Foundation&amp;rft_id=https%3A%2F%2Fwww.gnu.org%2Fsavannah-checkouts%2Fgnu%2Fbash%2Fbash.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-113"><span class="mw-cite-backlink"><b><a href="#cite_ref-113">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline-flex;--size:100%; max-width:max(15em, calc(var(--size) - 3.2em));"><ul style="display:inline-block"><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bashtop.html">"The GNU Bourne-Again Shell"</a>. <i>tiswww.case.edu</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tiswww.case.edu&amp;rft.atitle=The+GNU+Bourne-Again+Shell&amp;rft_id=https%3A%2F%2Ftiswww.case.edu%2Fphp%2Fchet%2Fbash%2Fbashtop.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/FAQ">"Frequently Asked Questions"</a>. <i>tiswww.case.edu</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=tiswww.case.edu&amp;rft.atitle=Frequently+Asked+Questions&amp;rft_id=https%3A%2F%2Ftiswww.case.edu%2Fphp%2Fchet%2Fbash%2FFAQ&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></li></ul></div></span> </li> <li id="cite_note-114"><span class="mw-cite-backlink"><b><a href="#cite_ref-114">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASHPID">GNU Bash Manual, 5.2 Bash Variables: BASHPID</a></span> </li> <li id="cite_note-115"><span class="mw-cite-backlink"><b><a href="#cite_ref-115">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fARGC">GNU Bash Manual, 5.2 Bash Variables: BASH_ARGC</a></span> </li> <li id="cite_note-116"><span class="mw-cite-backlink"><b><a href="#cite_ref-116">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fARGV">GNU Bash Manual, 5.2 Bash Variables: BASH_ARGV</a></span> </li> <li id="cite_note-117"><span class="mw-cite-backlink"><b><a href="#cite_ref-117">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fLINENO">GNU Bash Manual, 5.2 Bash Variables: BASH_LINENO</a></span> </li> <li id="cite_note-118"><span class="mw-cite-backlink"><b><a href="#cite_ref-118">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fREMATCH">GNU Bash Manual, 5.2 Bash Variables: BASH_REMATCH</a></span> </li> <li id="cite_note-119"><span class="mw-cite-backlink"><b><a href="#cite_ref-119">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fSOURCE">GNU Bash Manual, 5.2 Bash Variables: BASH_SOURCE</a></span> </li> <li id="cite_note-120"><span class="mw-cite-backlink"><b><a href="#cite_ref-120">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-BASH_005fXTRACEFD">GNU Bash Manual, 5.2 Bash Variables: BASH_XTRACEFD</a></span> </li> <li id="cite_note-121"><span class="mw-cite-backlink"><b><a href="#cite_ref-121">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-EPOCHREALTIME">GNU Bash Manual, 5.2 Bash Variables: EPOCHREALTIME</a></span> </li> <li id="cite_note-122"><span class="mw-cite-backlink"><b><a href="#cite_ref-122">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-FUNCNAME">GNU Bash Manual, 5.2 Bash Variables: FUNCNAME</a></span> </li> <li id="cite_note-123"><span class="mw-cite-backlink"><b><a href="#cite_ref-123">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-LINENO">GNU Bash Manual, 5.2 Bash Variables: LINENO</a></span> </li> <li id="cite_note-124"><span class="mw-cite-backlink"><b><a href="#cite_ref-124">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-PIPESTATUS">GNU Bash Manual, 5.2 Bash Variables: PIPESTATUS</a></span> </li> <li id="cite_note-125"><span class="mw-cite-backlink"><b><a href="#cite_ref-125">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-PPID">GNU Bash Manual, 5.2 Bash Variables: PPID </a></span> </li> <li id="cite_note-126"><span class="mw-cite-backlink"><b><a href="#cite_ref-126">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-PS4">GNU Bash Manual, 5.2 Bash Variables: PS4 </a></span> </li> <li id="cite_note-127"><span class="mw-cite-backlink"><b><a href="#cite_ref-127">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline-flex;--size:100%; max-width:max(15em, calc(var(--size) - 3.2em));"><ul style="display:inline-block"><li><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html">GNU Bash Manual, 3.5.3 Shell Parameter Expansion</a></li><li><a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bash.html#lbBB">bash(1), Parameter Expansion</a></li><li><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_06_02">POSIX 2024, 2.6.2 Parameter Expansion</a></li></ul></div></span> </li> <li id="cite_note-GNU_Bash_Manual,_3.4.2_Special_Parameters-128"><span class="mw-cite-backlink"><b><a href="#cite_ref-GNU_Bash_Manual,_3.4.2_Special_Parameters_128-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html">GNU Bash Manual, 3.4.2 Special Parameters</a></span> </li> <li id="cite_note-POSIX_2024,_2.5.2_Special_Parameters-129"><span class="mw-cite-backlink"><b><a href="#cite_ref-POSIX_2024,_2.5.2_Special_Parameters_129-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_05_02">POSIX 2024, 2.5.2 Special Parameters</a></span> </li> <li id="cite_note-the_set-130"><span class="mw-cite-backlink">^ <a href="#cite_ref-the_set_130-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-the_set_130-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline-flex;--size:100%; max-width:max(15em, calc(var(--size) - 3.2em));"><ul style="display:inline-block"><li><a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html">GNU Bash Manual, 4.3.1 The Set Builtin</a></li><li><a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_26">POSIX 2024, set</a></li></ul></div></span> </li> <li id="cite_note-bash(1),_SHELL_BUILTIN_COMMANDS-131"><span class="mw-cite-backlink">^ <a href="#cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-bash(1),_SHELL_BUILTIN_COMMANDS_131-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bash.html#lbDB">bash(1), SHELL BUILTIN COMMANDS</a></span> </li> <li id="cite_note-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap-132"><span class="mw-cite-backlink">^ <a href="#cite_ref-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap_132-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-GNU_Bash_Manual,_4.1_Bourne_Shell_Builtins:_trap_132-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-trap">GNU Bash Manual, 4.1 Bourne Shell Builtins: trap</a></span> </li> <li id="cite_note-GNU_Bash_Manual,_5.2_Bash_Variables-133"><span class="mw-cite-backlink"><b><a href="#cite_ref-GNU_Bash_Manual,_5.2_Bash_Variables_133-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html">GNU Bash Manual, 5.2 Bash Variables</a></span> </li> <li id="cite_note-bash(1):_Shell_Variables-134"><span class="mw-cite-backlink"><b><a href="#cite_ref-bash(1):_Shell_Variables_134-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://tiswww.case.edu/php/chet/bash/bash.html#lbAW">bash(1): Shell Variables</a></span> </li> <li id="cite_note-GNU_Bash_Manual,_4.3.2_The_Shopt_Builtin-135"><span class="mw-cite-backlink"><b><a href="#cite_ref-GNU_Bash_Manual,_4.3.2_The_Shopt_Builtin_135-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html">GNU Bash Manual, 4.3.2 The Shopt Builtin</a></span> </li> <li id="cite_note-ShellCheck-136"><span class="mw-cite-backlink"><b><a href="#cite_ref-ShellCheck_136-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409" /><div class="plainlist" style="display:inline;"><ul style="display:inline;"><li style="margin-bottom:.5em; display:block;;display:inline; margin:0;"><a rel="nofollow" class="external text" href="https://shellcheck.net">ShellCheck: Shell script analysis tool</a></li><li style="margin-bottom:.5em; display:block;;margin-top:.5em;"><a rel="nofollow" class="external text" href="https://github.com/koalaman/shellcheck">Github: shellcheck</a></li></ul></div></span> </li> <li id="cite_note-Package:_devscripts:_scripts_to_make_the_life_of_a_Debian_Package_maintainer_easier-137"><span class="mw-cite-backlink"><b><a href="#cite_ref-Package:_devscripts:_scripts_to_make_the_life_of_a_Debian_Package_maintainer_easier_137-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://packages.debian.org/sid/devscripts">Package: devscripts: scripts to make the life of a Debian Package maintainer easier</a></span> </li> <li id="cite_note-Kcov_-_code_coverage-138"><span class="mw-cite-backlink"><b><a href="#cite_ref-Kcov_-_code_coverage_138-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://simonkagstrom.github.io/kcov">Kcov - code coverage</a></span> </li> <li id="cite_note-Debugging_with_the_BASH_debugger-139"><span class="mw-cite-backlink"><b><a href="#cite_ref-Debugging_with_the_BASH_debugger_139-0">^</a></b></span> <span class="reference-text"> <a rel="nofollow" class="external text" href="https://bashdb.sourceforge.net/bashdb.html">Debugging with the BASH debugger</a></span> </li> <li id="cite_note-Documentation_of_Project_Homepage-140"><span class="mw-cite-backlink"><b><a href="#cite_ref-Documentation_of_Project_Homepage_140-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://lists.gnu.org/archive/html/bug-bash/2005-09/msg00038.html">"&#91;Bashdb-devel&#93; Re: &#91;PATCH&#93; fix bashdb script handling of tmp directory"</a>. <i>Documentation of Project's Homepage</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Documentation+of+Project%27s+Homepage&amp;rft.atitle=%5BBashdb-devel%5D+Re%3A+%5BPATCH%5D+fix+bashdb+script+handling+of+tmp+directory&amp;rft_id=https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fbug-bash%2F2005-09%2Fmsg00038.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-141"><span class="mw-cite-backlink"><b><a href="#cite_ref-141">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFJuliana2017" class="citation news cs1">Juliana, Cino (10 June 2017). <a rel="nofollow" class="external text" href="https://www.techolac.com/linux/linux-bash-exit-status-and-how-to-set-exit-status-in-bash/">"Linux bash exit status and how to set exit status in bash - Techolac"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190621183753/https://www.techolac.com/linux/linux-bash-exit-status-and-how-to-set-exit-status-in-bash/">Archived</a> from the original on 21 June 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">21 June</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Linux+bash+exit+status+and+how+to+set+exit+status+in+bash+-+Techolac&amp;rft.date=2017-06-10&amp;rft.aulast=Juliana&amp;rft.aufirst=Cino&amp;rft_id=https%3A%2F%2Fwww.techolac.com%2Flinux%2Flinux-bash-exit-status-and-how-to-set-exit-status-in-bash%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-TR-20140924-142"><span class="mw-cite-backlink"><b><a href="#cite_ref-TR-20140924_142-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFLeyden2014" class="citation web cs1">Leyden, John (24 September 2014). <a rel="nofollow" class="external text" href="https://www.theregister.co.uk/2014/09/24/bash_shell_vuln/">"Patch Bash NOW: 'Shell Shock' bug blasts OS X, Linux systems wide open"</a>. <i><a href="/wiki/The_Register" title="The Register">The Register</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20141016214010/http://www.theregister.co.uk/2014/09/24/bash_shell_vuln">Archived</a> from the original on 16 October 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=The+Register&amp;rft.atitle=Patch+Bash+NOW%3A+%27Shell+Shock%27+bug+blasts+OS+X%2C+Linux+systems+wide+open&amp;rft.date=2014-09-24&amp;rft.aulast=Leyden&amp;rft.aufirst=John&amp;rft_id=https%3A%2F%2Fwww.theregister.co.uk%2F2014%2F09%2F24%2Fbash_shell_vuln%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-NYT-20140925-NP-143"><span class="mw-cite-backlink"><b><a href="#cite_ref-NYT-20140925-NP_143-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFPerlroth2014" class="citation news cs1">Perlroth, Nicole (25 September 2014). <a rel="nofollow" class="external text" href="https://www.nytimes.com/2014/09/26/technology/security-experts-expect-shellshock-software-bug-to-be-significant.html">"Security Experts Expect 'Shellshock' Software Bug in Bash to Be Significant"</a>. <i><a href="/wiki/The_New_York_Times" title="The New York Times">The New York Times</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190405000511/https://www.nytimes.com/2014/09/26/technology/security-experts-expect-shellshock-software-bug-to-be-significant.html">Archived</a> from the original on 5 April 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=The+New+York+Times&amp;rft.atitle=Security+Experts+Expect+%27Shellshock%27+Software+Bug+in+Bash+to+Be+Significant&amp;rft.date=2014-09-25&amp;rft.aulast=Perlroth&amp;rft.aufirst=Nicole&amp;rft_id=https%3A%2F%2Fwww.nytimes.com%2F2014%2F09%2F26%2Ftechnology%2Fsecurity-experts-expect-shellshock-software-bug-to-be-significant.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-ZDN-20140929-144"><span class="mw-cite-backlink"><b><a href="#cite_ref-ZDN-20140929_144-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFSeltzer2014" class="citation web cs1">Seltzer, Larry (29 September 2014). <a rel="nofollow" class="external text" href="https://www.zdnet.com/article/shellshock-makes-heartbleed-look-insignificant/">"Shellshock makes Heartbleed look insignificant"</a>. <i><a href="/wiki/ZDNet" class="mw-redirect" title="ZDNet">ZDNet</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160514191755/http://www.zdnet.com/article/hackers-jump-on-the-shellshock-bash-bandwagon/">Archived</a> from the original on 14 May 2016.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ZDNet&amp;rft.atitle=Shellshock+makes+Heartbleed+look+insignificant&amp;rft.date=2014-09-29&amp;rft.aulast=Seltzer&amp;rft.aufirst=Larry&amp;rft_id=https%3A%2F%2Fwww.zdnet.com%2Farticle%2Fshellshock-makes-heartbleed-look-insignificant%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-145"><span class="mw-cite-backlink"><b><a href="#cite_ref-145">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFHuzaifa_Sidhpurwala2014" class="citation web cs1">Huzaifa Sidhpurwala (24 September 2014). <a rel="nofollow" class="external text" href="https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/">"Bash specially-crafted environment variables code injection attack"</a>. <a href="/wiki/Red_Hat" title="Red Hat">Red Hat</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20140925035842/https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/">Archived</a> from the original on 25 September 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Bash+specially-crafted+environment+variables+code+injection+attack&amp;rft.pub=Red+Hat&amp;rft.date=2014-09-24&amp;rft.au=Huzaifa+Sidhpurwala&amp;rft_id=https%3A%2F%2Fsecurityblog.redhat.com%2F2014%2F09%2F24%2Fbash-specially-crafted-environment-variables-code-injection-attack%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-Seclists-20141004-146"><span class="mw-cite-backlink"><b><a href="#cite_ref-Seclists-20141004_146-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFChazelas2014" class="citation web cs1">Chazelas, Stephane (4 October 2014). <a rel="nofollow" class="external text" href="http://seclists.org/oss-sec/2014/q4/102">"oss-sec mailing list archives"</a>. <i>Seclists.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20141006093452/http://seclists.org/oss-sec/2014/q4/102">Archived</a> from the original on 6 October 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">4 October</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Seclists.org&amp;rft.atitle=oss-sec+mailing+list+archives&amp;rft.date=2014-10-04&amp;rft.aulast=Chazelas&amp;rft.aufirst=Stephane&amp;rft_id=http%3A%2F%2Fseclists.org%2Foss-sec%2F2014%2Fq4%2F102&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABash+%28Unix+shell%29" class="Z3988"></span></span> </li> <li id="cite_note-147"><span class="mw-cite-backlink"><b><a href="#cite_ref-147">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://linux.die.net/man/1/bashbug">bashbug(1)</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181002232146/https://linux.die.net/man/1/bashbug">Archived</a> October 2, 2018, at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a>, die.net</span> </li> <li id="cite_note-148"><span class="mw-cite-backlink"><b><a href="#cite_ref-148">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://developer.apple.com/library/prerelease/mac/documentation/Darwin/Reference/ManPages/man1/bashbug.1.html">"Linux / Unix Command: bashbug"</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20141006131347/https://developer.apple.com/library/prerelease/mac/documentation/Darwin/Reference/ManPages/man1/bashbug.1.html">Archived</a> October 6, 2014, at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a>, apple.com</span> </li> <li id="cite_note-Arch_Linux,_Command-line_shell-149"><span class="mw-cite-backlink"><b><a href="#cite_ref-Arch_Linux,_Command-line_shell_149-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://wiki.archlinux.org/title/Command-line_shell">Arch Linux, Command-line shell</a></span> </li> </ol></div></div> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="GNU_Project62" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:GNU" title="Template:GNU"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:GNU" title="Template talk:GNU"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:GNU" title="Special:EditPage/Template:GNU"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="GNU_Project62" style="font-size:114%;margin:0 4em"><a href="/wiki/GNU_Project" title="GNU Project">GNU Project</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">History</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/GNU_Manifesto" title="GNU Manifesto">GNU Manifesto</a></li> <li><a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a> <ul><li><a href="/wiki/Free_Software_Foundation_Europe" title="Free Software Foundation Europe">Europe</a></li> <li><a href="/wiki/Free_Software_Foundation_of_India" title="Free Software Foundation of India">India</a></li> <li><a href="/wiki/Free_Software_Foundation_Latin_America" title="Free Software Foundation Latin America">Latin America</a></li></ul></li> <li><a href="/wiki/History_of_free_and_open-source_software" title="History of free and open-source software">History of free software</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Licenses</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/GNU_General_Public_License" title="GNU General Public License">GNU General Public License</a> <ul><li><a href="/wiki/GPL_linking_exception" title="GPL linking exception">linking exception</a></li> <li><a href="/wiki/GPL_font_exception" title="GPL font exception">font exception</a></li></ul></li> <li><a href="/wiki/GNU_Lesser_General_Public_License" title="GNU Lesser General Public License">GNU Lesser General Public License</a></li> <li><a href="/wiki/GNU_Affero_General_Public_License" title="GNU Affero General Public License">GNU Affero General Public License</a></li> <li><a href="/wiki/GNU_Free_Documentation_License" title="GNU Free Documentation License">GNU Free Documentation License</a></li> <li><a href="/wiki/GNAT_Modified_General_Public_License" title="GNAT Modified General Public License">GNAT Modified General Public License</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Software</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/GNU" title="GNU">GNU</a> (<a href="/wiki/GNU_variants" title="GNU variants">variants</a>)</li> <li><a href="/wiki/GNU_Hurd" title="GNU Hurd">Hurd</a></li> <li><a href="/wiki/Linux-libre" title="Linux-libre">Linux-libre</a></li> <li><a href="/wiki/Glibc" title="Glibc">glibc</a></li> <li><a class="mw-selflink selflink">Bash</a></li> <li><a href="/wiki/GNU_Core_Utilities" title="GNU Core Utilities">coreutils</a></li> <li><a href="/wiki/GNU_Find_Utilities" class="mw-redirect" title="GNU Find Utilities">findutils</a></li> <li><a href="/wiki/GNU_Autotools" title="GNU Autotools">Build system</a></li> <li><a href="/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a></li> <li><a href="/wiki/GNU_Binutils" title="GNU Binutils">binutils</a></li> <li><a href="/wiki/GNU_Debugger" title="GNU Debugger">GDB</a></li> <li><a href="/wiki/GNU_GRUB" title="GNU GRUB">GRUB</a></li> <li><a href="/wiki/GNUstep" title="GNUstep">GNUstep</a></li> <li><a href="/wiki/GIMP" title="GIMP">GIMP</a></li> <li><a href="/wiki/Jami_(software)" title="Jami (software)">Jami</a></li> <li><a href="/wiki/GNU_Emacs" title="GNU Emacs">GNU Emacs</a></li> <li><a href="/wiki/GNU_TeXmacs" title="GNU TeXmacs">GNU TeXmacs</a></li> <li><a href="/wiki/GNU_Octave" title="GNU Octave">GNU Octave</a></li> <li><a href="/wiki/GNU_Taler" title="GNU Taler">GNU Taler</a></li> <li><a href="/wiki/R_(programming_language)" title="R (programming language)">GNU R</a></li> <li><a href="/wiki/GNU_Scientific_Library" title="GNU Scientific Library">GSL</a></li> <li><a href="/wiki/GNU_Multiple_Precision_Arithmetic_Library" title="GNU Multiple Precision Arithmetic Library">GMP</a></li> <li><a href="/wiki/Electric_(software)" title="Electric (software)">GNU Electric</a></li> <li><a href="/wiki/GNU_Archimedes" title="GNU Archimedes">GNU Archimedes</a></li> <li><a href="/wiki/GNUnet" title="GNUnet">GNUnet</a></li> <li><a href="/wiki/GNU_Privacy_Guard" title="GNU Privacy Guard">GNU Privacy Guard</a></li> <li><a href="/wiki/Gnuzilla" class="mw-redirect" title="Gnuzilla">Gnuzilla</a> (<a href="/wiki/GNU_IceCat" title="GNU IceCat">IceCat</a>)</li> <li><a href="/wiki/GNU_Health" title="GNU Health">GNU Health</a></li> <li><a href="/wiki/GNUmed" title="GNUmed">GNUmed</a></li> <li><a href="/wiki/LilyPond" title="LilyPond">GNU LilyPond</a></li> <li><a href="/wiki/GNU_Go" title="GNU Go">GNU Go</a></li> <li><a href="/wiki/GNU_Chess" title="GNU Chess">GNU Chess</a></li> <li><a href="/wiki/Gnash_(software)" title="Gnash (software)">Gnash</a></li> <li><a href="/wiki/GNU_Guix" title="GNU Guix">Guix</a></li> <li><a href="/wiki/List_of_GNU_packages" title="List of GNU packages"><i>more...</i></a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Contributors</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Benjamin_Mako_Hill" title="Benjamin Mako Hill">Benjamin Mako Hill</a></li> <li><a href="/wiki/Bradley_M._Kuhn" title="Bradley M. Kuhn">Bradley M. Kuhn</a></li> <li><a href="/wiki/Brian_Fox_(programmer)" title="Brian Fox (programmer)">Brian Fox</a></li> <li><a href="/wiki/Federico_Heinz" class="mw-redirect" title="Federico Heinz">Federico Heinz</a></li> <li><a href="/wiki/William_John_Sullivan" title="William John Sullivan">John Sullivan</a></li> <li>Nagarjuna G.</li> <li><a href="/wiki/Richard_Stallman" title="Richard Stallman">Richard M. Stallman</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other topics</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/GNU/Linux_naming_controversy" title="GNU/Linux naming controversy">GNU/Linux naming controversy</a></li> <li><i><a href="/wiki/Revolution_OS" title="Revolution OS">Revolution OS</a></i></li> <li><a href="/wiki/Free_Software_Foundation_anti-Windows_campaigns" title="Free Software Foundation anti-Windows campaigns">Free Software Foundation anti-Windows campaigns</a></li> <li><a href="/wiki/Defective_by_Design" title="Defective by Design">Defective by Design</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235" /></div><div role="navigation" class="navbox" aria-labelledby="Unix_shells49" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231" /><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Unix_shells" title="Template:Unix shells"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Unix_shells" title="Template talk:Unix shells"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Unix_shells" title="Special:EditPage/Template:Unix shells"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Unix_shells49" style="font-size:114%;margin:0 4em"><a href="/wiki/Unix_shell" title="Unix shell">Unix shells</a></div></th></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Almquist_shell" title="Almquist shell">Almquist</a></li> <li><a class="mw-selflink selflink">Bash</a></li> <li><a href="/wiki/Bourne_shell" title="Bourne shell">Bourne</a></li> <li><a href="/wiki/C_shell" title="C shell">csh</a></li> <li><a href="/wiki/Fish_(Unix_shell)" title="Fish (Unix shell)">fish</a></li> <li><a href="/wiki/Hamilton_C_shell" title="Hamilton C shell">Hamilton</a></li> <li><a href="/wiki/KornShell" title="KornShell">Korn</a></li> <li><a href="/wiki/PowerShell" title="PowerShell">PowerShell</a></li> <li><a href="/wiki/PWB_shell" title="PWB shell">PWB</a></li> <li><a href="/wiki/Qshell" title="Qshell">Qshell</a></li> <li><a href="/wiki/Rc_(Unix_shell)" title="Rc (Unix shell)">rc</a></li> <li><a href="/wiki/Stand-alone_shell" title="Stand-alone shell">sash</a></li> <li><a href="/wiki/Tcsh" title="Tcsh">tcsh</a></li> <li><a href="/wiki/Thompson_shell" title="Thompson shell">Thompson</a></li> <li><a href="/wiki/Wish_(Unix_shell)" title="Wish (Unix shell)">Wish</a></li> <li><a href="/wiki/Z_shell" title="Z shell">Zsh</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/Comparison_of_command_shells" title="Comparison of command shells">Comparison of command shells</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235" /></div><div role="navigation" class="navbox" aria-labelledby="Programming_languages625" style="padding:3px"><table class="nowraplinks hlist mw-collapsible expanded navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231" /><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Programming_languages" title="Template:Programming languages"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Programming_languages" title="Template talk:Programming languages"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Programming_languages" title="Special:EditPage/Template:Programming languages"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Programming_languages625" style="font-size:114%;margin:0 4em"><a href="/wiki/Programming_language" title="Programming language">Programming languages</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/Comparison_of_programming_languages" title="Comparison of programming languages">Comparison</a></li> <li><a href="/wiki/Timeline_of_programming_languages" title="Timeline of programming languages">Timeline</a></li> <li><a href="/wiki/History_of_programming_languages" title="History of programming languages">History</a></li></ul> </div></td></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a></li> <li><a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> <ul><li><a href="/wiki/Simula" title="Simula">Simula</a></li></ul></li> <li><a href="/wiki/APL_(programming_language)" title="APL (programming language)">APL</a></li> <li><a href="/wiki/Assembly_language" title="Assembly language">Assembly</a></li> <li><a href="/wiki/BASIC" title="BASIC">BASIC</a> <ul><li><a href="/wiki/Visual_Basic" title="Visual Basic">Visual Basic</a> <ul><li><a href="/wiki/Visual_Basic_(classic)" title="Visual Basic (classic)">classic</a></li> <li><a href="/wiki/Visual_Basic_(.NET)" title="Visual Basic (.NET)">.NET</a></li></ul></li></ul></li> <li><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a></li> <li><a href="/wiki/C%2B%2B" title="C++">C++</a></li> <li><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a></li> <li><a href="/wiki/COBOL" title="COBOL">COBOL</a></li> <li><a href="/wiki/Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a></li> <li><a href="/wiki/Forth_(programming_language)" title="Forth (programming language)">Forth</a></li> <li><a href="/wiki/Fortran" title="Fortran">Fortran</a></li> <li><a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a></li> <li><a href="/wiki/Haskell" title="Haskell">Haskell</a></li> <li><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a></li> <li><a href="/wiki/JavaScript" title="JavaScript">JavaScript</a> <ul><li><a href="/wiki/TypeScript" title="TypeScript">TypeScript</a></li></ul></li> <li><a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a></li> <li><a href="/wiki/Kotlin_(programming_language)" title="Kotlin (programming language)">Kotlin</a></li> <li><a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a></li> <li><a href="/wiki/Lua_(programming_language)" title="Lua (programming language)">Lua</a></li> <li><a href="/wiki/MATLAB" title="MATLAB">MATLAB</a></li> <li><a href="/wiki/ML_(programming_language)" title="ML (programming language)">ML</a> <ul><li><a href="/wiki/Caml" title="Caml">Caml </a> <ul><li><a href="/wiki/OCaml" title="OCaml">OCaml</a></li></ul></li></ul></li> <li><a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a> <ul><li><a href="/wiki/Object_Pascal" title="Object Pascal">Object Pascal</a></li></ul></li> <li><a href="/wiki/Perl" title="Perl">Perl </a> <ul><li><a href="/wiki/Raku_(programming_language)" title="Raku (programming language)">Raku</a></li></ul></li> <li><a href="/wiki/PHP" title="PHP">PHP</a></li> <li><a href="/wiki/Prolog" title="Prolog">Prolog</a></li> <li><a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a></li> <li><a href="/wiki/R_(programming_language)" title="R (programming language)">R</a></li> <li><a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a></li> <li><a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a></li> <li><a href="/wiki/SQL" title="SQL">SQL</a></li> <li><a href="/wiki/Scratch_(programming_language)" title="Scratch (programming language)">Scratch</a></li> <li><a href="/wiki/Shell_script" title="Shell script">Shell</a></li> <li><a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a></li> <li><a href="/wiki/Swift_(programming_language)" title="Swift (programming language)">Swift</a></li> <li><i><a href="/wiki/List_of_programming_languages" title="List of programming languages">more...</a></i></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><span class="noviewer" typeof="mw:File"><span title="List-Class article"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/16px-Symbol_list_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/23px-Symbol_list_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/31px-Symbol_list_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <b>Lists:</b> <a href="/wiki/List_of_programming_languages" title="List of programming languages">Alphabetical</a></li> <li><a href="/wiki/List_of_programming_languages_by_type" title="List of programming languages by type">Categorical</a></li> <li><a href="/wiki/Generational_list_of_programming_languages" title="Generational list of programming languages">Generational</a></li> <li><a href="/wiki/Non-English-based_programming_languages" title="Non-English-based programming languages">Non-English-based</a></li> <li><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <a href="/wiki/Category:Programming_languages" title="Category:Programming languages">Category</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235" /></div><div role="navigation" class="navbox authority-control" aria-labelledby="Authority_control_databases_frameless&amp;#124;text-top&amp;#124;10px&amp;#124;alt=Edit_this_at_Wikidata&amp;#124;link=https&amp;#58;//www.wikidata.org/wiki/Q189248#identifiers&amp;#124;class=noprint&amp;#124;Edit_this_at_Wikidata651" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Authority_control_databases_frameless&amp;#124;text-top&amp;#124;10px&amp;#124;alt=Edit_this_at_Wikidata&amp;#124;link=https&amp;#58;//www.wikidata.org/wiki/Q189248#identifiers&amp;#124;class=noprint&amp;#124;Edit_this_at_Wikidata651" style="font-size:114%;margin:0 4em"><a href="/wiki/Help:Authority_control" title="Help:Authority control">Authority control databases</a> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q189248#identifiers" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">National</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://d-nb.info/gnd/4492523-2">Germany</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://catalogue.bnf.fr/ark:/12148/cb125416570">France</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://data.bnf.fr/ark:/12148/cb125416570">BnF data</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.idref.fr/034688234">IdRef</a></span></li></ul></div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐6fd9bbc867‐j2w79 Cached time: 20250326221340 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 1.343 seconds Real time usage: 1.506 seconds Preprocessor visited node count: 18100/1000000 Post‐expand include size: 417540/2097152 bytes Template argument size: 60367/2097152 bytes Highest expansion depth: 20/100 Expensive parser function count: 85/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 477122/5000000 bytes Lua time usage: 0.715/10.000 seconds Lua memory usage: 10460024/52428800 bytes Number of Wikibase entities loaded: 1/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 1269.198 1 -total 38.03% 482.707 1 Template:Reflist 22.60% 286.894 92 Template:Cite_web 17.96% 227.998 2 Template:Infobox 16.47% 209.099 1 Template:Infobox_software 14.05% 178.262 47 Template:Timeline-item 10.93% 138.660 1 Template:Infobox_software/simple 9.85% 125.065 4 Template:Wikidata 8.84% 112.193 8 Template:Multiref2 7.68% 97.481 11 Template:Tfm/dated --> <!-- Saved in parser cache with key enwiki:pcache:4547:|#|:idhash:canonical and timestamp 20250326221340 and revision id 1282239954. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&amp;type=1x1&amp;usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Bash_(Unix_shell)&amp;oldid=1282239954">https://en.wikipedia.org/w/index.php?title=Bash_(Unix_shell)&amp;oldid=1282239954</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Unix_shells" title="Category:Unix shells">Unix shells</a></li><li><a href="/wiki/Category:1989_software" title="Category:1989 software">1989 software</a></li><li><a href="/wiki/Category:Cross-platform_free_software" title="Category:Cross-platform free software">Cross-platform free software</a></li><li><a href="/wiki/Category:Domain-specific_programming_languages" title="Category:Domain-specific programming languages">Domain-specific programming languages</a></li><li><a href="/wiki/Category:Dynamically_scoped_programming_languages" title="Category:Dynamically scoped programming languages">Dynamically scoped programming languages</a></li><li><a href="/wiki/Category:Free_software_programmed_in_C" title="Category:Free software programmed in C">Free software programmed in C</a></li><li><a href="/wiki/Category:GNU_Project_software" title="Category:GNU Project software">GNU Project software</a></li><li><a href="/wiki/Category:Scripting_languages" title="Category:Scripting languages">Scripting languages</a></li><li><a href="/wiki/Category:Text-oriented_programming_languages" title="Category:Text-oriented programming languages">Text-oriented programming languages</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li><li><a href="/wiki/Category:Use_dmy_dates_from_March_2014" title="Category:Use dmy dates from March 2014">Use dmy dates from March 2014</a></li><li><a href="/wiki/Category:Articles_to_be_split_from_January_2025" title="Category:Articles to be split from January 2025">Articles to be split from January 2025</a></li><li><a href="/wiki/Category:All_articles_to_be_split" title="Category:All articles to be split">All articles to be split</a></li><li><a href="/wiki/Category:Pages_with_timeline_metadata" title="Category:Pages with timeline metadata">Pages with timeline metadata</a></li><li><a href="/wiki/Category:Articles_needing_cleanup_from_January_2025" title="Category:Articles needing cleanup from January 2025">Articles needing cleanup from January 2025</a></li><li><a href="/wiki/Category:All_pages_needing_cleanup" title="Category:All pages needing cleanup">All pages needing cleanup</a></li><li><a href="/wiki/Category:Articles_with_sections_that_need_to_be_turned_into_prose_from_January_2025" title="Category:Articles with sections that need to be turned into prose from January 2025">Articles with sections that need to be turned into prose from January 2025</a></li><li><a href="/wiki/Category:Articles_needing_cleanup_from_January_2019" title="Category:Articles needing cleanup from January 2019">Articles needing cleanup from January 2019</a></li><li><a href="/wiki/Category:Articles_containing_how-to_sections" title="Category:Articles containing how-to sections">Articles containing how-to sections</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 25 March 2025, at 06:04<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Bash_(Unix_shell)&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://www.wikimedia.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/static/images/footer/wikimedia-button.svg" width="84" height="29"><img src="/static/images/footer/wikimedia.svg" width="25" height="25" alt="Wikimedia Foundation" lang="en" loading="lazy"></picture></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" lang="en" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">Bash (Unix shell)</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>45 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="mw-portlet mw-portlet-dock-bottom emptyPortlet" id="p-dock-bottom"> <ul> </ul> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-585dc88b6-g96r4","wgBackendResponseTime":230,"wgPageParseReport":{"limitreport":{"cputime":"1.343","walltime":"1.506","ppvisitednodes":{"value":18100,"limit":1000000},"postexpandincludesize":{"value":417540,"limit":2097152},"templateargumentsize":{"value":60367,"limit":2097152},"expansiondepth":{"value":20,"limit":100},"expensivefunctioncount":{"value":85,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":477122,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 1269.198 1 -total"," 38.03% 482.707 1 Template:Reflist"," 22.60% 286.894 92 Template:Cite_web"," 17.96% 227.998 2 Template:Infobox"," 16.47% 209.099 1 Template:Infobox_software"," 14.05% 178.262 47 Template:Timeline-item"," 10.93% 138.660 1 Template:Infobox_software/simple"," 9.85% 125.065 4 Template:Wikidata"," 8.84% 112.193 8 Template:Multiref2"," 7.68% 97.481 11 Template:Tfm/dated"]},"scribunto":{"limitreport-timeusage":{"value":"0.715","limit":"10.000"},"limitreport-memusage":{"value":10460024,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-6fd9bbc867-j2w79","timestamp":"20250326221340","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Bash (Unix shell)","url":"https:\/\/en.wikipedia.org\/wiki\/Bash_(Unix_shell)","sameAs":"http:\/\/www.wikidata.org\/entity\/Q189248","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q189248","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2001-11-01T10:50:28Z","dateModified":"2025-03-25T06:04:22Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/8\/82\/Gnu-bash-logo.svg","headline":"GNU Project implementation of the standard Unix shell"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10