且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从流程输出中删除换行符?

更新时间:2023-02-09 09:52:33


我想你可以

I think you can do

(replace-regexp-in-string "\n$" "" 
              (shell-command-to-string "git rev-parse --show-toplevel"))