• BASH is much easier to set a prompt that displays the current directory. To do the same in Kornshell is hackish.
• Kornshell has associative arrays and BASH doesn’t. Now, the last time I used Associative arrays was… Let me think… Never.
• Kornshell handles loop syntax a bit better. You can usually set a value in a Kornshell loop and have it available after the loop.
• Bash handles getting exit codes from pipes in a cleaner way.
• Kornshell has the print command which is way better than the echo command.
• Bash has tab completions. In older versions
• Kornshell has the r history command that allows me to quickly rerun older commands.
• Kornshell has the syntax cd old new which replaces old with new in your directory and CDs over there. It’s convenient when you have are in a directory called /foo/bar/barfoo/one/bar/bar/foo/bar and you need to cd to /foo/bar/barfoo/two/bar/bar/foo/bar In Kornshell, you can simply do cd one two and be done with it. In BASH, you’d have to cd ../../../../../two/bar/bar/foo/bar.
Archives
- February 2025
- January 2025
- October 2024
- August 2024
- June 2024
- May 2024
- February 2024
- December 2023
- October 2023
- June 2023
- April 2023
- August 2016
- June 2016
- May 2016
- February 2016
- December 2015
- October 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- January 2014
- December 2013
- November 2013
- October 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
Categories
Meta