Bash script convert for mksh?
#2
RE: Bash script convert for mksh?
So ksh and bash do not generally have the same export syntax.

Mksh even moreso, so you'll need to familiarize yourself with mksh:

https://manpages.ubuntu.com/manpages/tru...ksh.1.html

It should be noted on IRIX the default interactive shell is usually csh or tcsh, and depending on what functionality you use in GNU Bash or KSH88/MKSH, you may find it faster to just use tcsh.

For instance, the main things that I used to use for Bash when I was a Linux user have similar conventions:

Directional history (i.e. using up/down to cycle through old commands, same as bash)
Tab completion of commands and paths
Colored prompts (have to use older syntax for it)
Execute prior command argument (ESC+. In Bash, but append !$ to tcsh)

But again, use what you're comfortable with, and I can appreciate the need for performance. bash is slower than a dog.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
(This post was last modified: 01-04-2021, 09:52 PM by Raion.)
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,241
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-04-2021, 09:51 PM


Messages In This Thread
Bash script convert for mksh? - by stormy - 01-04-2021, 08:59 PM
RE: Bash script convert for mksh? - by Raion - 01-04-2021, 09:51 PM
RE: Bash script convert for mksh? - by robespierre - 01-06-2021, 02:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)