Skip to content

Commit

Permalink
allow equals signs in variable values
Browse files Browse the repository at this point in the history
by parsing the value after the *first* equals sign
  • Loading branch information
borisjoffe committed Oct 30, 2015
1 parent 76edd9a commit 25141a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/fenv.apply.fish
Expand Up @@ -26,7 +26,7 @@ function fenv.apply

for variable in $variables
set key (echo $variable | sed -e 's/=.*//')
set value (echo $variable | sed -e 's/.*=//')
set value (echo $variable | sed -e 's/[^=]*=//')

if test "$key" = 'PATH'
set value (echo $value | sed -e 's/:/ /g')
Expand Down

0 comments on commit 25141a4

Please sign in to comment.