(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"git blame encoding conversion">)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/t8005/utf8.txt)}) (C {(.)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/t8005/euc-japan.txt)}) (C {(.)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/t8005/sjis.txt)}) (C {(test_expect_success)} {(SQ <"setup the repository">)} { (SQ <"\n"> <"\t# Create the file\n"> <"\techo \"UTF-8 LINE\" > file &&\n"> <"\tgit add file &&\n"> <"\tgit commit --author \"$UTF8_NAME <utf8@localhost>\" -m \"$UTF8_MSG\" &&\n"> <"\n"> <"\techo \"EUC-JAPAN LINE\" >> file &&\n"> <"\tgit add file &&\n"> <"\tgit config i18n.commitencoding eucJP &&\n"> < "\tgit commit --author \"$EUC_JAPAN_NAME <euc-japan@localhost>\" -m \"$EUC_JAPAN_MSG\" &&\n" > <"\n"> <"\techo \"SJIS LINE\" >> file &&\n"> <"\tgit add file &&\n"> <"\tgit config i18n.commitencoding SJIS &&\n"> <"\tgit commit --author \"$SJIS_NAME <sjis@localhost>\" -m \"$SJIS_MSG\"\n"> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[63]) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("author ") ($ VSub_Name "$SJIS_NAME") ("\n") ("summary ") ($ VSub_Name "$SJIS_MSG") ("\n") ("author ") ($ VSub_Name "$SJIS_NAME") ("\n") ("summary ") ($ VSub_Name "$SJIS_MSG") ("\n") ("author ") ($ VSub_Name "$SJIS_NAME") ("\n") ("summary ") ($ VSub_Name "$SJIS_MSG") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [66] ) ] ) (FuncDef name: filter_author_summary body: (BraceGroup children: [ (C {(sed)} {(-n)} {(-e)} {(SQ <"/^author /p">)} {(-e)} {(SQ <"/^summary /p">)} {(DQ ($ VSub_At "$@"))} ) ] spids: [93] ) spids: [88 92] ) (C {(test_expect_success)} {(KW_Bang "!") (MINGW)} {(SQ <"blame respects i18n.commitencoding">)} { (SQ <"\n"> <"\tgit blame --incremental file >output &&\n"> <"\tfilter_author_summary output >actual &&\n"> <"\ttest_cmp expected actual\n"> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[140]) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("author ") ($ VSub_Name "$EUC_JAPAN_NAME") ("\n") ("summary ") ($ VSub_Name "$EUC_JAPAN_MSG") ("\n") ("author ") ($ VSub_Name "$EUC_JAPAN_NAME") ("\n") ("summary ") ($ VSub_Name "$EUC_JAPAN_MSG") ("\n") ("author ") ($ VSub_Name "$EUC_JAPAN_NAME") ("\n") ("summary ") ($ VSub_Name "$EUC_JAPAN_MSG") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [143] ) ] ) (C {(test_expect_success)} {(KW_Bang "!") (MINGW)} {(SQ <"blame respects i18n.logoutputencoding">)} { (SQ <"\n"> <"\tgit config i18n.logoutputencoding eucJP &&\n"> <"\tgit blame --incremental file >output &&\n"> <"\tfilter_author_summary output >actual &&\n"> <"\ttest_cmp expected actual\n"> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[187]) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("author ") ($ VSub_Name "$UTF8_NAME") ("\n") ("summary ") ($ VSub_Name "$UTF8_MSG") ("\n") ("author ") ($ VSub_Name "$UTF8_NAME") ("\n") ("summary ") ($ VSub_Name "$UTF8_MSG") ("\n") ("author ") ($ VSub_Name "$UTF8_NAME") ("\n") ("summary ") ($ VSub_Name "$UTF8_MSG") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [190] ) ] ) (C {(test_expect_success)} {(KW_Bang "!") (MINGW)} {(SQ <"blame respects --encoding=UTF-8">)} { (SQ <"\n"> <"\tgit blame --incremental --encoding=UTF-8 file >output &&\n"> <"\tfilter_author_summary output >actual &&\n"> <"\ttest_cmp expected actual\n"> ) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[233]) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("author ") ($ VSub_Name "$SJIS_NAME") ("\n") ("summary ") ($ VSub_Name "$SJIS_MSG") ("\n") ("author ") ($ VSub_Name "$EUC_JAPAN_NAME") ("\n") ("summary ") ($ VSub_Name "$EUC_JAPAN_MSG") ("\n") ("author ") ($ VSub_Name "$UTF8_NAME") ("\n") ("summary ") ($ VSub_Name "$UTF8_MSG") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [236] ) ] ) (C {(test_expect_success)} {(KW_Bang "!") (MINGW)} {(SQ <"blame respects --encoding=none">)} { (SQ <"\n"> <"\tgit blame --incremental --encoding=none file >output &&\n"> <"\tfilter_author_summary output >actual &&\n"> <"\ttest_cmp expected actual\n"> ) } ) (C {(test_done)}) ] )