Skip to content

Commit

Permalink
Safer use of the 'tty' command output (related to GH #392)
Browse files Browse the repository at this point in the history
This is in hope to fix GH #392. But I've still not figured out the real
cause.
  • Loading branch information
dolmen committed Sep 22, 2015
1 parent 4d8e15e commit f436867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ LP_PERM=: # without color

# Same as bash '\l', but inlined as a constant as the value will not change
# during the shell's life
LP_TTYN="$(basename $(tty))"
LP_TTYN="$(basename -- "$(tty)" 2>/dev/null)"


# Escape the given strings
Expand Down

0 comments on commit f436867

Please sign in to comment.