We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2feaac6 commit 076b4e7Copy full SHA for 076b4e7
src/chsrc.c
@@ -867,7 +867,8 @@ ensure_apt_sourcelist (int debian_type)
867
chsrc_warn_remarkably (ETC_APT_SOURCELIST " 文件缺失,将替补")
868
}
869
870
- char *codename = xy_run ("sed -nr 's/VERSION_CODENAME=(.*)/\1/p' " ETC_OSRELEASE, 0, NULL);
+ // 反向引用需要escape一下
871
+ char *codename = xy_run ("sed -nr 's/VERSION_CODENAME=(.*)/\\1/p' " ETC_OSRELEASE, 0, NULL);
872
codename = xy_str_delete_suffix (codename, "\n");
873
874
char *makeup = NULL;
0 commit comments