{"id":5550,"date":"2015-07-15T13:01:15","date_gmt":"2015-07-15T11:01:15","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5550"},"modified":"2015-07-15T13:01:15","modified_gmt":"2015-07-15T11:01:15","slug":"bash-scripts-and-start-up-files","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/07\/15\/bash-scripts-and-start-up-files\/","title":{"rendered":"bash scripts and start-up files"},"content":{"rendered":"<p>\t\t\t\tJust my personal opinion \u2013 but with many years of experience on my back:<\/p>\n<ul>\n<li>most shell scripts (bash, ksh, csh) should be run without <code>~\/.bashrc<\/code> (or equivalent) \u2013 bash has &#8220;<code>--norc<\/code>&#8221; for that purpose, csh has &#8220;<code>-f<\/code>&#8220;<\/li>\n<li>the PATH environment variable should be set within <code>~\/.profile<\/code> \u2026, not within <code>~\/.bashrc<\/code> \u2013 do it once at the beginning of the entire session and not often, and do not slow down all utilities&#8217; start-up times<\/li>\n<\/ul>\n<p>Of course there is always a reason to deviate from rule \u2013 but it needs proper justification.<\/p>\n<p>Today I introduced &#8220;<code>--norc<\/code>&#8221; within <code>\/usr\/bin\/lessopen.sh<\/code> on SUSE Linux, and it helped me avoid a weird error message I have read for years now again and again.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just my personal opinion \u2013 but with many years of experience on my back: most shell scripts (bash, ksh, csh) should be run without ~\/.bashrc (or equivalent) \u2013 bash has &#8220;&#8211;norc&#8221; for that purpose, csh has &#8220;-f&#8220; the PATH environment variable should be set within ~\/.profile \u2026, not within ~\/.bashrc \u2013 do it once at [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-5550","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1rw","jetpack_likes_enabled":true,"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=5550"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5550\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}