This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: B20.1: bash getopts?


I wrote :
>
> I'm trying to run a bash script which uses getopts under cygwin. The
> script works on my linux box, but reports 'getopts not found' under
> cygwin.
>
> #/bin/bash
> [snip]

A helpful soul responded:
>sounds like you're not really using bash, but
>
>how about changing your first line to #!/bin/bash instead of #/bin/bash ?
>


Doh! I can't believe I missed that.  Please pass the DUNCE cap, and 
I'll go sit in the corner.  :-(


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]