Skip to content

パイプライン実行時、標準出力を/dev/clip疑似デバイスへリダイレクトしたときの挙動が不自然 #128

Description

@s-yukikaze

複数コマンドのパイプライン実行において、最初以外のコマンドで標準出力を/dev/clip疑似デバイスへリダイレクトすると無視され、最初のコマンドで同様にリダイレクトすると最後のコマンドのそれと解釈されます。一般的なシェルと挙動が異なるため不自然に見えます。

確認環境

  • GVim 7.4.092+kaoriya (win7x86)
  • vimshell (commit: 2cdbd6e)

サンプル

vimshell% echo "foo,bar" > /dev/clip
vimshell% echo `=@*`
foo,bar

vimshell% echo "foo,bar" | powershell -Command '($input -split ",")[0]' > /dev/clip
foo
vimshell% echo `=@*`

vimshell% echo "foo,bar" > /dev/clip | powershell -Command '($input -split ",")[0]'
vimshell% echo `=@*`
foo

vimshell% 

Vimshellのstdoutハンドリングも変ですが、Vimprocの問題のような気もします。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions