Skip to content

Minor verbose command coloring bug #1119

@stefansundin

Description

@stefansundin

Hello,

This is a rather minor issue but figured I'd report it anyway.

I have this code:

$.verbose = true;
await $`sass --style=compressed src/static/bootstrap.scss > dist/static/bootstrap-v5.3.3.min.css`;

And it is displayed like this:

Image

The green color on the output redirection part (> dist/static/bootstrap-v5.3.3.min.css) does not cover the whole path, breaking at the - character.

I expect the whole path to have the same color. If I remove the - I get this:

Image

If I change my sass command to the imaginary sass-compiler command, then we can see that it too looks broken, and the whole sass-compiler command should be green:

Image

I would also be in favor of changing the color when there's any kind of output redirection. It seems like it is green just because it is the first word after a special keyword, but I think it would be appropriate if it had its own dedicated color. If this is implemented then care should be taken so it also works with other output redirection (2>, &>), and also input (<).

Thanks!

Tested with zx v8.2.4 and v8.4.0.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions