make-dbus-glib-error-enum.sh use sh but with syntax of bash

Marcin Krzyzanowski krzak at hakore.com
Mon Dec 13 23:46:53 PST 2004


Użytkownik Olivier Andrieu napisał:
>  > 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 ?
> 

yes. right.

-- 
Marcin Krzyżanowski


More information about the dbus mailing list