/bin/sh portability question

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, September 23, 2005 - 3:50 am

Hello,

It seems things are progressing nicely with regard to
Solaris portability.  However, I still have a few problems:

1) Maybe I didn't notice some new configuration option,
   but strcasestr is still not found with a simple "gmake".

2) In many of the shell scripts there is the idiom:

      #!/bin/sh
      
      cmd=
      path=$(dirname $0)
      case "$#" in
      0)      ;;
      *)      cmd="$1"
              shift
 
   When run, this gives the error:

      ./git.sh: syntax error at line 4: `path=$' unexpected

   I think it's because (on my Solaris at least), sh is really 
   sh and is not symlinked to bash, and sh doesn't like that 
   syntax.  Are there any good solutions to this other than
   making the administrators actually change sh to a symlink,
   (which I tried)?

/Peter
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
/bin/sh portability question, Peter Eriksen, (Fri Sep 23, 3:50 am)
Re: /bin/sh portability question, H. Peter Anvin, (Fri Sep 23, 3:48 pm)
Re: /bin/sh portability question, Joel Becker, (Fri Sep 23, 3:57 pm)
Re: /bin/sh portability question, H. Peter Anvin, (Fri Sep 23, 4:00 pm)
Re: /bin/sh portability question, Morten Welinder, (Fri Sep 23, 3:55 pm)
Re: /bin/sh portability question, Junio C Hamano, (Fri Sep 23, 5:07 am)
Re: /bin/sh portability question, Patrick Mauritz, (Sat Sep 24, 1:35 pm)
Re: /bin/sh portability question, Peter Eriksen, (Fri Sep 23, 8:17 am)
Re: /bin/sh portability question, Junio C Hamano, (Fri Sep 23, 4:24 am)
Re: /bin/sh portability question, Sean, (Fri Sep 23, 5:02 am)
Re: /bin/sh portability question, Junio C Hamano, (Fri Sep 23, 5:19 am)
Re: /bin/sh portability question, Sean, (Fri Sep 23, 6:34 am)