Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Background | 13 comments | Create New Account
Click here to return to the 'Background' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Background
Authored by: wgscott on Jun 10, '03 11:33:42AM

The reason for linking it to ksh is that you might have scripts that run on other unix platforms written to invoke ksh. This is the case for some software I was recently compiling for OS X. So you can either hunt down and edit all of these files and debug them to ensure that they run uder zsh, and then instruct all other users on how to do it, or you can issue a 1 line command.

zsh functions differently when emulating ksh than it does by default, so you have to tell it to emulate ksh for it to work right on ksh scripts. Linking and invoking "tells it" to do so automatically.



[ Reply to This | # ]
Background
Authored by: TedCD on Jun 10, '03 08:38:31PM

I've been using a .zshrc file with the command "emulate ksh" in it.

Would that have the same effect?

Ted

---
Ted



[ Reply to This | # ]
Nope
Authored by: SeanAhern on Jun 11, '03 07:05:03PM

Not if you have to run two different scripts, one which starts with

#!/bin/ksh

and another which says

#!/bin/zsh

---
-Sean



[ Reply to This | # ]