Tim,
On 2004 Jul 31 , at 01.20, Tim Jenness wrote:
> It'll need some tweaks from someone that actually understands
> sh - it generates aliases like:
>
> alias ellpro='${ESP_DIR}/ellpro'
Bash, zsh and ksh do aliases like that, but Bourne sh doesn't have them.
> rather than your
>
> ellpro () { ${ESP_DIR}/ellpro $* ;}
A shell function, somewhat more flexible than an alias. All sh-style
shells have them, except for early versions of the original Bourne
shell.
/bin/sh on Linux systems is just bash, possibly in a bourne-compatible
mode. /bin/sh on DUX and Solaris (as I've just verified) doesn't have
aliases, but both do have functions.
I've modified ifd2star.in, so that it emits pretty portable shell
functions.
Norman
--
----------------------------------------------------------------------
Norman Gray : Physics & Astronomy, Glasgow University, UK
http://www.astro.gla.ac.uk/users/norman/ : www.starlink.ac.uk
|