{"id":3024,"date":"2016-12-18T12:09:38","date_gmt":"2016-12-18T03:09:38","guid":{"rendered":"http:\/\/www.catracing.org\/hendrb\/?p=3024"},"modified":"2019-10-29T03:15:20","modified_gmt":"2019-10-28T18:15:20","slug":"tech-tutorial-adding-bash-4-osx-using-home-brewos-x","status":"publish","type":"post","link":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/","title":{"rendered":"Tech Tutorial &#8211; Adding BASH 4 to OSX Using Home BrewOS X"},"content":{"rendered":"<h1><span style=\"color: #0000ff;\"><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-14 size-thumbnail\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg 150w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-300x300.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo.jpg 1024w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/span><\/h1>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #0000ff;\">Fun With OS X\u0010\u0010\u0010\u0010\u0010\u0010<\/span><\/h1>\n<h2><span style=\"color: #0000ff;\"> \u2013 Installing BASH 4 on OS X using Home Brew&nbsp;<\/span><\/h2>\n<hr>\n<p><span style=\"color: #0000ff;\">&nbsp;&nbsp;&nbsp;<\/span>&nbsp;&nbsp;&nbsp;&nbsp; If you have spent any time using LINUX or even other Unix variants like Solaris, you are already painfully aware of the differences that exist in various shells, commands, and utilities.&nbsp; One of the more striking differences is that Apple continues to include BASH v.3.2.57 which is about 8 years old and does not support some very import features of v4 such as associative arrays and a myriad of additional types of command completion.&nbsp; For a full list of BASH 4 changes click HERE. (Replace HERE with this LINK <a href=\"https:\/\/www.admon.org\/scripts\/new-features-in-bash-4-0\/)\">https:\/\/www.admon.org\/scripts\/new-features-in-bash-4-0\/)<\/a>.&nbsp; The reason that Apple does not include a newer version of BASH is that BASH4 is now under the GPL3 license, and does not conform to Apples copyright philosophy. However this does not stop you from installing it yourself.<\/p>\n<p>&nbsp; There are several ways to install BASH 4 on your Mac, including compiling from source if you are feeling masochistic.&nbsp; The method that I used, installing the Home Brew repository will be covered in this tutorial.<\/p>\n<h2><span style=\"color: #0000ff;\">&nbsp; Part I \u2013 Installing the Homebrew repository.<\/span><\/h2>\n<p>&nbsp; If you use Linux, you are already familiar with a software repository, and package management software.&nbsp; Red Hat and CentOS uses yum and rpm, while Unbunto Linux uses apt-get or Synaptic.&nbsp; For us OS X users, the only software respository most of us are familiar with is the App store, which allows us to purchase, install software and manage their updates.&nbsp; Homebrew is basically an App Store for software packages created, compiled, and maintained by the community and are free of charge.&nbsp; This is where we will be obtaining BASH version 4. &nbsp;We first though must install XCode Command Line Tools (CLT), and Homebrew.<\/p>\n<p>&nbsp;For detailed instructions to installing Homebrew, go to brew.sh<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3026\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page-300x185.jpeg\" alt=\"\" width=\"300\" height=\"185\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page-300x185.jpeg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page-768x473.jpeg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page-1024x630.jpeg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Home-Brew-web-page.jpeg 1700w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ol>\n<li>Launch your terminal<\/li>\n<\/ol>\n<p>&nbsp;2. Copy and paste the shell command on the home page into your terminal window at the shell prompt.<br \/>\n&nbsp; &nbsp; This will automatically install XCode Command Like Tools, and the homebrew repository.<br \/>\n&nbsp;3. Once installed test by typing man brew in your terminal window.<\/p>\n<div id=\"attachment_3025\" style=\"width: 982px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Man-brew.jpeg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3025\" class=\"wp-image-3025 size-full\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Man-brew.jpeg\" width=\"972\" height=\"184\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Man-brew.jpeg 972w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Man-brew-300x57.jpeg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Man-brew-768x145.jpeg 768w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/a><p id=\"caption-attachment-3025\" class=\"wp-caption-text\">Man entry for brew<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #0000ff;\">Part II \u2013 Installing BASH 4<\/span><\/h2>\n<p>&nbsp; 1. In your shell window switch to an account with elevated privledges, brew will not execute being run using sudo<\/p>\n<p><span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;$ su &#8211; &lt;priledged username&gt;5<\/span><\/p>\n<p><span style=\"color: #ffffff;\">Then type.<\/span><\/p>\n<p><span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; $ brew install bash bash-completion<\/span><\/p>\n<p>This will install both BASH 4 and BASH completion in \/usr\/local\/bin\/base<\/p>\n<p>&nbsp; 2. We now need to add the new shell to the list of whitelisted shells, this is done in the \/etc\/shells file.<\/p>\n<p><span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; $ echo \u201c$(brew &#8211;prefix)\/bin\/bash\u201d &gt;&gt; \/etc\/shells<\/span><\/p>\n<p>&nbsp;3. <span style=\"color: #ff0000;\">OPTIONAL<\/span> Change your login shell to BASH4<\/p>\n<p><span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; &nbsp;$ chsh \u2013s $(brew &#8211;prefix)\/bin\/bash<\/span><\/p>\n<p><span style=\"color: #ff0000;\">NOTE:&nbsp; I chose to leave my login shell at BASH3, as BASH4 can be invoked in the shebang #! at the beginning of any BASH4 script.&nbsp;&nbsp; Here are some other personal tweaks I did for my BASH4 installation.<\/span><\/p>\n<p>I created a symbolic link for \/bin\/bash4 to \/usr\/local\/bin\/bash.&nbsp; That way I can execute BASH v4 scripts using #!\/bin\/bash4.<\/p>\n<p>I did this by typing the following&nbsp;<\/p>\n<p><span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; &nbsp;$ ln -s \/usr\/local\/bin\/bash \/bin\/bash4<\/span><\/p>\n<p>You can see that bash4 is a link to \/usr\/local\/bin\/bash<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/symlink-to-bash4.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3027\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/symlink-to-bash4.jpeg\" alt=\"\" width=\"972\" height=\"184\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/symlink-to-bash4.jpeg 972w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/symlink-to-bash4-300x57.jpeg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/symlink-to-bash4-768x145.jpeg 768w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/a><\/p>\n<p>I can change to BASH4 from any shell in this manner.<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #ffff00;\"> $ \/bin\/bash4<\/span><br \/>\n<a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/bash4.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3028\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/bash4.jpeg\" alt=\"\" width=\"970\" height=\"163\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/bash4.jpeg 970w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/bash4-300x50.jpeg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/bash4-768x129.jpeg 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>I can re-execute the login script next by entering the following command.<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #ffff00;\"> $ source \/etc\/profile<\/span><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Source.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3029\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Source.jpeg\" alt=\"\" width=\"970\" height=\"163\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Source.jpeg 970w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Source-300x50.jpeg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2016\/12\/Source-768x129.jpeg 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ffff00;\">PART III \u2013 BASH Version checking in login scripts.<\/span><\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp; I also added a BASH version checking routine to be placed in \/etc\/profile (Login script that is executed when opening a terminal window for ALL USERS).<\/p>\n<p>You may want to consider adding this to your profile script.<\/p>\n<p><span style=\"color: #ffff00;\">&nbsp;&nbsp; &nbsp; 3&nbsp; ## BASH3 .profile (Put ALL BASH3 specific code here)<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;4&nbsp; function bash3 {<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;5&nbsp; echo -e &#8220;\\nUsing BASH 3 Specific and Version Neutral login profile\\n&#8221;&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;6&nbsp; }<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;7&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;8&nbsp; ## BASH4 .profile (Pull ALL BASH4 specific code here)<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;9&nbsp; function bash4 {<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp;10&nbsp; echo -e &#8220;\\nUsing BASH 4 Specific and Version Neutral login profile\\n&#8221;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 11&nbsp; }<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 12&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 13&nbsp; # Default BASH version checking<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 14&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 15&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (( ${BASH_VERSION%%.*} &gt; 3 ))<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 16&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; then&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 17&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bash4<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 18&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else &nbsp; &nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 19&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bash3<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 21&nbsp;<\/span><br \/>\n<span style=\"color: #ffff00;\">&nbsp; &nbsp; &nbsp; 22&nbsp; ## PUT ALL VERSION NEUTRAL BASH SCRIPTS BELOW THIS LINE!<\/span><\/p>\n<p>That is all there is to installing BASH4 in OSX.&nbsp; I hope you enjoyed the tutorial will keep returning to Brent\u2019s world for more great articles!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Fun With OS X\u0010\u0010\u0010\u0010\u0010\u0010 \u2013 Installing BASH 4 on OS X using Home Brew&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you have spent any time using LINUX or even other Unix variants like Solaris, you are already painfully aware of the differences that <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-3024","post","type-post","status-publish","format-standard","hentry","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Fun With OS X\u0010\u0010\u0010\u0010\u0010\u0010 \u2013 Installing BASH 4 on OS X using Home Brew&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you have spent any time using LINUX or even other Unix variants like Solaris, you are already painfully aware of the differences that &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\" \/>\n<meta property=\"og:site_name\" content=\"Brent&#039;s World\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-18T03:09:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-28T18:15:20+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\" \/>\n<meta name=\"author\" content=\"Brent Hendricks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brent Hendricks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\"},\"author\":{\"name\":\"Brent Hendricks\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"headline\":\"Tech Tutorial &#8211; Adding BASH 4 to OSX Using Home BrewOS X\",\"datePublished\":\"2016-12-18T03:09:38+00:00\",\"dateModified\":\"2019-10-28T18:15:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\"},\"wordCount\":921,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\",\"articleSection\":[\"Technical\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\",\"name\":\"Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\",\"datePublished\":\"2016-12-18T03:09:38+00:00\",\"dateModified\":\"2019-10-28T18:15:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.catracing.org\/hendrb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tutorial &#8211; Adding BASH 4 to OSX Using Home BrewOS X\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/\",\"name\":\"Brent&#039;s World\",\"description\":\"Your weekly dose of the life of Brent!\",\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\",\"name\":\"Brent Hendricks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"width\":4480,\"height\":6720,\"caption\":\"Brent Hendricks\"},\"logo\":{\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\"},\"sameAs\":[\"http:\/\/www.catracing.org\",\"https:\/\/www.facebook.com\/Brents-World-912767498915017\"],\"url\":\"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/","og_locale":"en_US","og_type":"article","og_title":"Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World","og_description":"&nbsp; Fun With OS X\u0010\u0010\u0010\u0010\u0010\u0010 \u2013 Installing BASH 4 on OS X using Home Brew&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you have spent any time using LINUX or even other Unix variants like Solaris, you are already painfully aware of the differences that &hellip; Continue reading &rarr;","og_url":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/","og_site_name":"Brent&#039;s World","article_publisher":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_author":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_published_time":"2016-12-18T03:09:38+00:00","article_modified_time":"2019-10-28T18:15:20+00:00","og_image":[{"url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg","type":"","width":"","height":""}],"author":"Brent Hendricks","twitter_misc":{"Written by":"Brent Hendricks","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#article","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/"},"author":{"name":"Brent Hendricks","@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"headline":"Tech Tutorial &#8211; Adding BASH 4 to OSX Using Home BrewOS X","datePublished":"2016-12-18T03:09:38+00:00","dateModified":"2019-10-28T18:15:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/"},"wordCount":921,"commentCount":0,"publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg","articleSection":["Technical"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/","url":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/","name":"Tech Tutorial - Adding BASH 4 to OSX Using Home BrewOS X - Brent&#039;s World","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg","datePublished":"2016-12-18T03:09:38+00:00","dateModified":"2019-10-28T18:15:20+00:00","breadcrumb":{"@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#primaryimage","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2014\/05\/OS-X-Logo-150x150.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.catracing.org\/hendrb\/"},{"@type":"ListItem","position":2,"name":"Tech Tutorial &#8211; Adding BASH 4 to OSX Using Home BrewOS X"}]},{"@type":"WebSite","@id":"https:\/\/www.catracing.org\/hendrb\/#website","url":"https:\/\/www.catracing.org\/hendrb\/","name":"Brent&#039;s World","description":"Your weekly dose of the life of Brent!","publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442","name":"Brent Hendricks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","width":4480,"height":6720,"caption":"Brent Hendricks"},"logo":{"@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg"},"sameAs":["http:\/\/www.catracing.org","https:\/\/www.facebook.com\/Brents-World-912767498915017"],"url":"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p43ojH-MM","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/3024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/comments?post=3024"}],"version-history":[{"count":0,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/3024\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/media?parent=3024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/categories?post=3024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/tags?post=3024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}