Skip to content

Does not work with fish 3.1.0 #75

@lukasbestle

Description

@lukasbestle

Thanks for creating this simple and useful tool. I have been using it for a few years and now wanted to switch one machine to the fish shell, which is supported according to the README.

Is this an issue in my setup or is fish currently not supported by php-version?

Error:

$ source (brew --prefix php-version)/php-version.sh
/usr/local/opt/php-version/php-version.sh (line 47): Unexpected ')' found, expecting '}'
    -h|--help|-u|--usage)
                        ^
from sourcing file /usr/local/opt/php-version/php-version.sh
	called on line 11 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
	called during startup
source: Error while reading file '/usr/local/opt/php-version/php-version.sh'

Debug information:

## System

  Darwin <hostname> 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64

## Script

  TYPE:    NOT FOUND
  VERSION: NOT FOUND

## Environment

  SHELL:        /usr/local/bin/fish
  PATH:         /Users/lux/.composer/vendor/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin
  PHPS:         
  PHP_VERSIONS:

## Homebrew

  VERSION: Homebrew 2.2.11-114-g28a1497
           Homebrew/homebrew-core (git revision 1f6b068; last commit 2020-04-05)
           Homebrew/homebrew-cask (git revision a5780; last commit 2020-04-05)
  PATH:    /usr/local/bin/brew
  PHPS:    /usr/local/Cellar/php
           /usr/local/Cellar/php@7.2
           /usr/local/Cellar/php@7.3

## PHP

  VERSION: 7.4.4

## INI

  Configuration File (php.ini) Path: /usr/local/etc/php/7.4
  Loaded Configuration File:         /usr/local/etc/php/7.4/php.ini
  Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
  Additional .ini files parsed:      /usr/local/etc/php/7.4/conf.d/ext-apcu.ini,
  /usr/local/etc/php/7.4/conf.d/ext-opcache.ini,
  /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions