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

Force echo to enable "\." expansion for title escape sequences #416

Closed
wants to merge 1 commit into from

Conversation

pkkolos
Copy link
Contributor

@pkkolos pkkolos commented Dec 16, 2015

LP_TITLE_OPEN & LP_TITLE_CLOSE need the "." expansion, so explicitly enable it.

A screenshot:
set_title

pkkolos referenced this pull request Dec 16, 2015
"echo -e" was necessary when colors were defined with "\e". But we have
abandonned this years ago. It was time to fix this!
We now use "echo -E" to force echo to disable "\." expansion.
dolmen added a commit that referenced this pull request Dec 16, 2015
With 50ace41 I broke _lp_title as the
TITLE_OPEN/TITLE_CLOSE had content that required expansion (echo -e).
This caused an issue only on zsh because for bash \e in PS1 was
expanded (not in zsh because escape sequences use '%' instead of '\').
The issue is now fixed by using raw bytes in TITLE_OPEN/TITLE_CLOSE.
(Thanks to pkkolos for also noticing the issue and reporting it)
@dolmen
Copy link
Collaborator

dolmen commented Dec 16, 2015

The issue only had consequences in zsh.

I fixed it with a2f7a3a.

@dolmen dolmen closed this Dec 16, 2015
@pkkolos
Copy link
Contributor Author

pkkolos commented Dec 16, 2015

Commits a2f7a3a & 229920a indeed fixed the problem.

@pkkolos pkkolos deleted the fixes branch December 17, 2015 19:00
pkkolos pushed a commit to pkkolos/liquidprompt that referenced this pull request Dec 17, 2015
With 50ace41 I broke _lp_title as the
TITLE_OPEN/TITLE_CLOSE had content that required expansion (echo -e).
This caused an issue only on zsh because for bash \e in PS1 was
expanded (not in zsh because escape sequences use '%' instead of '\').
The issue is now fixed by using raw bytes in TITLE_OPEN/TITLE_CLOSE.
(Thanks to pkkolos for also noticing the issue and reporting it)
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.

2 participants