Skip to content

Fixed __phpbrew_normalize_build in Bash#1105

Merged
morozov merged 1 commit into
phpbrew:masterfrom
morozov:fix-bash-normalize-build
Dec 19, 2019
Merged

Fixed __phpbrew_normalize_build in Bash#1105
morozov merged 1 commit into
phpbrew:masterfrom
morozov:fix-bash-normalize-build

Conversation

@morozov
Copy link
Copy Markdown
Contributor

@morozov morozov commented Dec 19, 2019

As of #1101, phpbrew use does not accept the arguments that don't start with "php-". E.g.:

$ phpbrew list
  php-8.0.0-dev
* php-7.4.1
  php-7.3.13
  php-7.1.33
  php-5.6.40
  php-5.3.29

$ phpbrew use 5.3.29
PHP version 5.3.29 is not installed.

$ phpbrew use php-5.3.29

$ phpbrew use
Currently using php-5.3.29

The reason is that the moment when the vesion regular expression pattern was converted from a variable to a literal, it should have been unquoted.

As of #1101, `phpbrew use` does not accept the arguments that don't start with "php-". E.g.:
```
$ phpbrew list
  php-8.0.0-dev
* php-7.4.1
  php-7.3.13
  php-7.1.33
  php-5.6.40
  php-5.3.29

$ phpbrew use 5.3.29
PHP version 5.3.29 is not installed.

$ phpbrew use php-5.3.29

$ phpbrew use
Currently using php-5.3.29
```
The reason is that the moment when the vesion regular expression pattern was converted from a variable to a literal, it should have been unquoted.
@morozov morozov added Bug Bash Regression A bug that that was introduced as part of a feature or another bug fix labels Dec 19, 2019
@morozov morozov added this to the Release 1.25.0 milestone Dec 19, 2019
@morozov morozov self-assigned this Dec 19, 2019
@morozov morozov merged commit 968ff44 into phpbrew:master Dec 19, 2019
@morozov morozov deleted the fix-bash-normalize-build branch December 19, 2019 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bash Bug Regression A bug that that was introduced as part of a feature or another bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant