warp icon indicating copy to clipboard operation
warp copied to clipboard

Scripts with spaces in their pathnames won't run

Open LowBudgetReference opened this issue 3 years ago • 4 comments

Discord username (optional)

justaping

Describe the bug

Scripts (e.g. shell scripts or Python scripts) with spacing in their names/pathnames will show a "no such file or directory" zsh error due to Warp not treating the whole pathname as a singular string, instead cutting off where there is a space. I know that Warp doesn't exactly support running scripts (I have to manually select to open in Warp, which isn't a "recommended app"). Still, I thought it would be nice to find a way to circumvent this error since it can run scripts perfectly otherwise. Adding quotation marks around the pathname allows the script to be run properly, so there could be some way to automatically add them when opening a file in Warp.

To reproduce

  1. Create a shell script with a space in its name.
  2. Open it in Warp (you have to select Open With -> Other..., select "All Applications", then select Warp).
  3. Error pops up

Expected behavior

The script would run.

Screenshots

Screenshot 2023-09-27 at 18 31 20@2x

Operating system

MacOS

Operating system and version

14.0 (23A344)

Shell Version

zsh 5.9 (x86_64-apple-darwin21.3.0)

Current Warp version

v0.2023.09.19.08.04.stable_00

Regression

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

Recent working Warp date

No response

Additional context

No response

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:b8107fdf-ba31-488d-b103-d271c89cac3e

None

LowBudgetReference avatar Sep 27 '23 10:09 LowBudgetReference

@RWCoding58 Thanks for submitting, sorry about this issue. I was able to reproduce this and noticed it's working fine in other terminals. I'll bring this up with the team working on this feature and we'll post any updates on this thread. As a workaround, once in the folder, you can run the script directly from Warp with ./<script name>.

dannyneira avatar Sep 27 '23 17:09 dannyneira

Hi @RWCoding58 Marking this as resolved, please update to the latest Warp and let us know if you still seeing the issue.

dannyneira avatar Oct 17 '23 15:10 dannyneira

It started working for me a few days ago, but I forgot to reply here. Thanks!

LowBudgetReference avatar Oct 18 '23 13:10 LowBudgetReference

Hey, I am using v0.2024.01.30.16.52.stable_01 but I fetching the same issue.

mah3uz avatar Feb 08 '24 15:02 mah3uz