Skip to content

Commit 3206355

Browse files
committed
fixup! Tmain: add a case for testing the behavior when giving a wrong kind letter
1 parent 5d07968 commit 3206355

File tree

1 file changed

+4
-4
lines changed
  • Tmain/lregex-kind-letter.d

1 file changed

+4
-4
lines changed

Tmain/lregex-kind-letter.d/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33

44
CTAGS="$1 --quiet --options=NONE"
55

6-
echo param: '|(.)|\1|^'
6+
/bin/echo param: '|(.)|\1|^'
77
${CTAGS} --langdef=x --regex-x='|(.)|\1|^' --list-kinds-full=x
88
# In this case, ctags ignores the substring after the last '|'.
99
# It is evaluated as flags.
1010

11-
echo param: '|(.)|\1|^|'
11+
/bin/echo param: '|(.)|\1|^|'
1212
${CTAGS} --langdef=x --regex-x='|(.)|\1|^|' --list-kinds-full=x
1313
# In this case, ctags warns specifying a wrong kind letter.
1414

15-
echo param: '|(.)|\1|^|'
15+
/bin/echo param: '|(.)|\1|^|'
1616
${CTAGS} --langdef=x --regex-x='|(.)|\1|,' --list-kinds-full=x
1717
# In this case, ctags ignores the substring after the last '|'.
1818
# It is evaluated as flags.
1919

20-
echo param: '|(.)|\1|,|'
20+
/bin/echo param: '|(.)|\1|,|'
2121
${CTAGS} --langdef=x --regex-x='|(.)|\1|,|' --list-kinds-full=x
2222
# In this case, ctags recognized a kind letter and name
2323
# is not given; 'r' and "regex" are used as default values.

0 commit comments

Comments
 (0)