infused / dbf

DBF is a small, fast Ruby library for reading dBase, xBase, Clipper, and FoxPro database files.
http://rdoc.info/projects/infused/dbf
MIT License
262 stars 88 forks source link

error with current shebang in bin/dbf #60

Closed boutil closed 10 years ago

boutil commented 10 years ago

hi,

When I run bin/dbf (on Debian), I get the following error:

 /usr/bin/env: ruby -s: No such file or directory

It seems that env cannot use an interpreter with a switch. As a temporary workaround, I use #!/usr/bin/ruby -s as shebang.

I know that -s is very convenient to do cheap option parsing. But could you consider porting the script to some standard solution, like optparse?

Thanks!

infused commented 10 years ago

That's unfortunate. I will look into a work around.

For research/reference: https://www.ruby-forum.com/topic/96121