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


Click here to return to the 'Use zsh to emulate ksh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use zsh to emulate ksh
Authored by: mervTormel on Jun 10, '03 11:25:07AM

the shells are not hard linked:

$ ls -i1 /bin/*sh* | sort
663179 /bin/bash.205a.disabled
743103 /bin/bash
817572 /bin/sh
817578 /bin/zsh
817587 /bin/zsh-4.0.4
817593 /bin/tcsh
817605 /bin/csh



[ Reply to This | # ]
Use zsh to emulate ksh
Authored by: wgscott on Jun 10, '03 11:42:05AM

This is odd:

% ls -i1 /bin/*sh*
2609239 /bin/bash*
2609265 /bin/csh*
2609234 /bin/ksh*
2609252 /bin/sh*
2609250 /bin/tcsh*
2609234 /bin/zsh*
2609235 /bin/zsh-4.0.4*

BUT they are the same size. So instead of hard linking, I guess they copied them?

% ls -lF /bin/*sh*
-rwxr-xr-x 1 root wheel 540884 Mar 22 19:29 /bin/bash*
-r-xr-xr-x 1 root wheel 315136 Mar 22 19:29 /bin/csh*
-rwxr-xr-x 2 root wheel 828780 Mar 22 19:29 /bin/ksh*
-r-xr-xr-x 1 root wheel 540884 Mar 22 19:29 /bin/sh*
-r-xr-xr-x 1 root wheel 315136 Mar 22 19:29 /bin/tcsh*
-rwxr-xr-x 2 root wheel 828780 Mar 22 19:29 /bin/zsh*
-rwxr-xr-x 1 root wheel 828780 Mar 22 19:29 /bin/zsh-4.0.4*
%




[ Reply to This | # ]
Use zsh to emulate ksh
Authored by: wgscott on Jun 10, '03 11:46:45AM

The main point was that symbolic linking, as suggested on the zsh page, will cause subtle problems that for me only showed up in the context of a program I have that relies on embedded ksh scripts.

The problem went away when I hard linked it. It would have also gone away if I had cp /bin/zsh /bin/ksh



[ Reply to This | # ]