文字错误 #151

文字错误 #145: 表示嵌入命令输出的“反引号”被错误的替换为“单引号”

P516: 执行 cat 命令的反引号被错误写成双引号

Added by 蒋 鑫 almost 2 years ago. Updated about 1 year ago.

Status:已勘误 Start date:07/01/2011
Priority:普通 Due date:
Assignee:蒋 鑫 % Done:

100%

Category:- Spent time: -
Target version:第一版

Description

这个错误很严重,影响命令的执行。


$ git filter-branch --tag-name-filter '
      oldtag="cat" 
      newtag=${oldtag#old-prefix}
      if [ "$oldtag" != "$newtag" ]; then
          newtag="new-prefix$newtag" 
      fi
      echo $newtag
      '

更正为:

$ git filter-branch --tag-name-filter '
      oldtag=$(cat)
      newtag=${oldtag#old-prefix}
      if [ "$oldtag" != "$newtag" ]; then
          newtag="new-prefix$newtag" 
      fi
      echo $newtag
      '

History

#1 Updated by 蒋 鑫 almost 2 years ago

  • Status changed from 新建 to 已勘误
  • % Done changed from 0 to 80

已应用到变更列表 commit:ae22e8a9c3b84aeeff772c53c03e37c07090c4fb.

#2 Updated by 蒋 鑫 almost 2 years ago

已应用到变更列表 commit:6a8a272358167823911e9bb48117680117c64b38.

#3 Updated by 多喝茶 多喝茶 about 1 year ago

  • % Done changed from 80 to 100

已应用到变更列表 gotgit|commit:6a8a272358167823911e9bb48117680117c64b38.

Also available in: Atom PDF