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

Pipes render incorrectly in iterm2 #67

Open
alexholliz opened this issue Apr 5, 2019 · 3 comments
Open

Pipes render incorrectly in iterm2 #67

alexholliz opened this issue Apr 5, 2019 · 3 comments

Comments

@alexholliz
Copy link

Running pipes.sh from iterm2-nightly Build 3.3.20190405-nightly on mac. Installed 1.3.0 via homebrew. When invoking pipes.sh it prints \e[1m\e[32m next to every "pipe" character. It also does not print in color.

Running ZSH

echo $TERM
xterm-256color
locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

Screen Shot 2019-04-05 at 15 51 30

@j3r1ch0
Copy link

j3r1ch0 commented Aug 17, 2019

I know this is super old but I figured I'd answer anyway. It's not iterm2 that is the problem. The problem is your ZSH shell. This is a Bash script, written for use in a Bash shell. ZSH is close to Bash, but varies in some subtle ways. If you first type bash before invoking the pipes.sh script it should work just fine since it'll drop you in to a Bash shell.

@lovetoburnswhen
Copy link

lovetoburnswhen commented Apr 6, 2021

I know this is super old but I figured I'd answer anyway. It's not iterm2 that is the problem. The problem is your ZSH shell. This is a Bash script, written for use in a Bash shell. ZSH is close to Bash, but varies in some subtle ways. If you first type bash before invoking the pipes.sh script it should work just fine since it'll drop you in to a Bash shell.

I'm getting the same issue unfortunately with bash pipes.sh.

Using cpipes works great

@MXCR-cpu
Copy link

Leaving this here for possible future reference. I have found that one work around is to change echo -n to printf in the script's main function for-loop. I tried the to find a good justification for this but came up empty handed: so far the working theory is that it has something to do with echo failing to accept the escape character.

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

No branches or pull requests

4 participants