chris-marsh / pureline

A Pure Bash Powerline PS1 Command Prompt
MIT License
507 stars 95 forks source link

"bash: [: true: integer expression expected" inside path_module #8

Closed pvxe closed 6 years ago

pvxe commented 6 years ago

image Bash complains about a test comparison inside path_module with incorrect operator introduced in commit 1045000d00b03041878e9b4c47653d19f593f52d

Printing the $3 value when inside path_module shows that this variable holds a boolean value instead of an integer one. Don't know if this has to be that way though. image

Reverting the changes of said commit fixes bash complaints about the correct use of the operator inside the test.

Bash version: GNU bash, version 4.4.19(1)-release (x86_64-unknown-linux-gnu)

I'd gladly provide more information if needed.

EDIT: Strangely, I have not been able to reproduce this on a friend's machine. I fear that this might not be a pureline bug.

pvxe commented 6 years ago

image

Closing this because I was too dumb to not realize I had my config file outdated after pulling some changes.

Funny enough I find a little and harmless file named '1', now I get it why those changed had to be made.

Sorry for this useless issue.