xargs with command that open editor leaves shell in weird state

前端 未结 5 879
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 04:27

I tried to make an alias for committing several different git projects. I tried something like

cat projectPaths | \\
xargs -I project git --git-dir=project/.gi         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 05:20

    Interesting! I see the exact same behaviour on Mac as well, doing something as simple as:

    ls *.h | xargs vim

    Apparently, it is a problem with vim:

    http://talideon.com/weblog/2007/03/xargs-vim.cfm

提交回复
热议问题