Skip to content

-compress flag fails for paths that require quoting #23685

Description

@Larsimusrex

Describe the bug

File paths with characters the require quoting, e.g. space, fail when compiled with the -compress flag.

Reproduction Steps

create file "te st.v"
v te\ st.v -compress

Expected Behavior

No Errors

Current Behavior

strip: '/home/lars/te': No such file
strip: 'st': No such file
strip failed

Possible Solution

add os.quoted_path for the compress flag

Additional Information/Context

No response

V version

V 0.4.9 e129ec5

Environment details (OS name and version, etc.)

V full version V 0.4.9 d680c42.e129ec5
OS linux, "Void Linux"
Processor 12 cpus, 64bit, little endian, AMD Ryzen 5 5600G with Radeon Graphics
Memory 4.19GB/15.52GB
V executable /home/lars/v/v
V last modified time 2025-02-10 16:41:30
V home dir OK, value: /home/lars/v
VMODULES OK, value: /home/lars/.vmodules
VTMP OK, value: /tmp/v_1000
Current working dir OK, value: /home/lars
Git version git version 2.48.1
V git status weekly.2025.03-109-ge129ec5b
.git/config present true
cc version cc (GCC) 13.2.0
gcc version gcc (GCC) 13.2.0
clang version clang version 17.0.6
tcc version tcc version 0.9.28rc 2024-07-31 HEAD@1cee0908 (x86_64 Linux)
tcc git status thirdparty-linux-amd64 0134e9b9
emcc version N/A
glibc version ldd (GNU libc) 2.39

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions