In answering another question I created the following script bash script:
#!/bin/bash
files1=( file1.txt file2.txt file3.txt )
files2=( file1_.txt file2_.txt file3_.txt )
cmd="vim -c set diffopt=filler,vertical -c edit ${files1[0]} -c diffsplit ${files2[0]} "
echo $cmd
for i in {1..2}; do
cmd="${cmd} -c tabe ${files1[i]} -c diffsplit ${files2[i]} "
done
#$cmd
echo $cmd
问题在于,如果我尝试办案,
$cmd
在文字末尾,我有错误,但如果我只使用回合美元,然后复制,然后在指挥线上打过去,那就算是罚款。
有什么想法?
感谢。