Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix options in shebang line and updated rune access for PHP 7.4+ #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

serafdev
Copy link

First line requires -S if we want to pass a binary with options, tried in bash and fish:

❯ ./vcfconvert.sh -f csv -d "," -o contacts.csv ../Downloads/contacts.vcf
/usr/bin/env: ‘php -qC’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

The curly braces to access a rune is no longer supported:

❯ ./vcfconvert.sh -f csv -d "," -o contacts.csv ../Downloads/contacts.vcf
PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/seraf/vcfconvert/vcfconvert.sh on line 39

First line requires `-S` if we want to pass a binary with options, tried in bash and fish:

```sh
❯ ./vcfconvert.sh -f csv -d "," -o contacts.csv ../Downloads/contacts.vcf
/usr/bin/env: ‘php -qC’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
```

The curly braces to access a rune is no longer supported:

```sh
❯ ./vcfconvert.sh -f csv -d "," -o contacts.csv ../Downloads/contacts.vcf
PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/seraf/vcfconvert/vcfconvert.sh on line 39
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant