make-dbus-glib-error-enum.sh use sh but with syntax of bash
Olivier Andrieu
oliv__a at users.sourceforge.net
Mon Dec 13 05:14:00 PST 2004
> Marcin Krzyzanowski [Mon, 13 Dec 2004]:
>
> Hi,
>
> in file dbus/make-dbus-glib-error-enum.sh
>
> there is
> #!/bin/sh
>
> SRC=$1
> DEST=$2
>
> function die()
> {
> echo $1 1>&2
> /bin/rm $DEST.tmp
> exit 1
> }
>
>
> but this is a bash syntax AFAIK.
>
> In my system sh -> ksh, so maybe there should be
>
> #! /bin/bash
>
> ?
Or, just use a strictly POSIX-compliant syntax, i.e. get rid of the
`function' keyword. Does your ksh accept it ?
--
Olivier
More information about the dbus
mailing list