[vim/vim] runtime(zip): use system() instead of :! (PR #19370)

2 views
Skip to first unread message

Mao-Yining

unread,
Feb 9, 2026, 12:01:56 AM (yesterday) Feb 9
to vim/vim, Subscribed
  • ':!' is not stable, so use system() to get more consistent behaviour.
  • Only warns when using 'pwsh'.
  • Remove trailing spaces.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19370

Commit Summary

  • 397d1a8 runtime(zip): use system() instead of :!

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370@github.com>

Mao-Yining

unread,
Feb 9, 2026, 12:36:51 AM (yesterday) Feb 9
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19370)

Hmm. I don't have linux. Could anybody help?

The purpose of this pr is to fix it working on GUI MS-Windows.
It was failed to open files

:!unzip -p -- "C:/abc.zip" > "C:\a.temp"
caution: filename not matched:  >
caution: filename not matched:  C:/a.temp


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/c3869450262@github.com>

Christian Brabandt

unread,
Feb 9, 2026, 1:51:33 PM (21 hours ago) Feb 9
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19370)

unzip has pretty nasty command line parsing rules. It seems to see the > as part a file name.

Perhaps this works:

:!cmd /c "unzip -p -- "C:\abc.zip" > "C:/a.temp""

Oh wrong, I think I misunderstood. What issue are you facing on Linux?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/c3873358039@github.com>

Mao-Yining

unread,
Feb 9, 2026, 6:58:21 PM (16 hours ago) Feb 9
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19370)

Oh wrong, I think I misunderstood. What issue are you facing on Linux?

After using system(), the linux test was failed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/c3874523250@github.com>

lxhillwind

unread,
1:30 AM (10 hours ago) 1:30 AM
to vim/vim, Subscribed
lxhillwind left a comment (vim/vim#19370)

When replacing :! with system(), s:Escape()'s second argument should also be altered with 0, since this argument is passed to shellescape() actually.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/c3875611764@github.com>

Mao-Yining

unread,
2:31 AM (9 hours ago) 2:31 AM
to vim/vim, Push

@mao-yining pushed 1 commit.

  • 23e892f runtime(zip): use system() instead of :!


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/before/397d1a89a37e4fc8fd3ead261898e6c58bec27aa/after/23e892f441c538081254d830b6cfd5571d78be73@github.com>

Mao-Yining

unread,
2:37 AM (8 hours ago) 2:37 AM
to vim/vim, Push

@mao-yining pushed 1 commit.

  • 7d7f99b runtime(zip): use system() instead of :!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19370/before/23e892f441c538081254d830b6cfd5571d78be73/after/7d7f99bfa7c3d5f1ce9fbe3435b24edc75932a54@github.com>

Reply all
Reply to author
Forward
0 new messages