warpdotdev / warpdotdev/warp

The `hr` command on macOS displays differently

Open
#4,977 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-info os:mac ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Dupe Check
Describe the bug

I am using the hr command on macOS, when using it in Warp I get different output compared to the standard terminal

To reproduce
  1. Start Warp
  2. Type hr - press enter
  3. Type 'hr - #` press enter
Expected behavior

I expect to see the following output:

me@My-MacBook-Pro ~ % hr -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
me@My-MacBook-Pro ~ % hr - #
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#################################################################################################################################################################################################################################################
me@My-MacBook-Pro ~ % 

Screenshots

Unfortunately I get the following output, the hash symbol is ignored
image

Operating system

MacOS

Operating system and version

Sonoma 14.5

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.05.28.08.02.stable_00

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

I use hr - # as part of a longer series of commands all put together with && in an alias, the hr comes first and the other commands don't execute in Warp as they do with the standard terminal, so I started to unpick and this seems to be the key problem.

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Warp on macOS with zsh 5.9 using hr - and hr - #, then compare both outputs with a standard terminal. Trace Warp's handling of these commands and verify that the hash line renders as expected and that the subsequent commands in a chained alias execute normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, zsh
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.