<p>I have some ksh scripts which I'd like to convert to run with bash instead.</p>

<p>Are there any useful on-line resources for this?</p>

<p>I'm really looking for a list of differences between the two shells and any gotchas I might encounter, although all information is welcome :-)</p>

[{'answer_id': 56814, 'author': 'ColinYounger', 'author_id': 1223, 'author_profile': 'https://Stackoverflow.com/users/1223', 'pm_score': 3, 'selected': True, 'text': '<p>Have you tried looking at <a href="http://www.faqs.org/faqs/unix-faq/shell/shell-differences/" rel="nofollow noreferrer">this</a> page? It has a useful matrix of features and links to elsewhere.</p>\n\n<p>Also <a href="http://www.faqs.org/faqs/unix-faq/shell/bash/" rel="nofollow noreferrer">this</a> link, search for:</p>\n\n<blockquote>\n  <p>C2)  How does bash differ from the Korn shell</p>\n</blockquote>\n'}, {'answer_id': 56980, 'author': 'Tim Kennedy', 'author_id': 5699, 'author_profile': 'https://Stackoverflow.com/users/5699', 'pm_score': 2, 'selected': False, 'text': '<p>Here\'s a comparison from HP on the differences between shells:</p>\n<ul>\n<li><a href="https://web.archive.org/web/20100829200456/http://docs.hp.com/en/B2355-90046/ch15s03.html" rel="nofollow noreferrer">https://web.archive.org/web/20100829200456/http://docs.hp.com/en/B2355-90046/ch15s03.html</a></li>\n</ul>\n<p>Here\'s a great set of UNIX shell tutorials from Richard\'s Shell Scripting Universe:</p>\n<ul>\n<li><a href="http://www.injunea.demon.co.uk/index.htm" rel="nofollow noreferrer">http://www.injunea.demon.co.uk/index.htm</a></li>\n</ul>\n<p>The second is by far one of the most useful scripting resources I have found, and it really helps you learn how to write scripts with portability in mind.</p>\n<p>Good luck with your conversions.</p>\n<p><strong>2022 EDIT: HP retired the comparison page, so I updated the link to an archived version in the wayback machine.</strong></p>\n'}]
['https://Stackoverflow.com/questions/56798', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2599/']