@@ -9,43 +9,42 @@ is_feature_available ${CTAGS} interactive
99# It seems that the output format is slightly different between libjansson versions
1010s ()
1111{
12- sed -e s/' :"' /' : "' /g
12+ sed -e s/' :"' /' : "' /g | jdropver
1313}
1414
1515CTAGS=" $CTAGS --options=NONE"
16- NV=" --pseudo-tags=-TAG_PROGRAM_VERSION"
1716
1817echo identification message on startup
1918echo =======================================
20- ${CTAGS} --_interactive $NV < /dev/null | s
19+ ${CTAGS} --_interactive < /dev/null | s
2120
2221echo
2322echo error on invalid command
2423echo =======================================
25- echo ' {"command":"foobar"}' | ${CTAGS} --_interactive $NV | s
24+ echo ' {"command":"foobar"}' | ${CTAGS} --_interactive | s
2625
2726echo
2827echo error on missing arguments
2928echo =======================================
30- echo ' {"command":"generate-tags"}' | ${CTAGS} --_interactive $NV | s
29+ echo ' {"command":"generate-tags"}' | ${CTAGS} --_interactive | s
3130
3231echo
3332echo error on invalid file
3433echo =======================================
35- echo ' {"command":"generate-tags", "filename":"test.foo"}' | ${CTAGS} --_interactive $NV | s
34+ echo ' {"command":"generate-tags", "filename":"test.foo"}' | ${CTAGS} --_interactive | s
3635
3736echo
3837echo generate tags from file
3938echo =======================================
40- echo ' {"command":"generate-tags", "filename":"test.rb"}' | ${CTAGS} --_interactive $NV | s
39+ echo ' {"command":"generate-tags", "filename":"test.rb"}' | ${CTAGS} --_interactive | s
4140
4241echo
4342echo process multiple commands
4443echo =======================================
4544(
4645 echo ' {"command":"generate-tags", "filename":"test.rb"}'
4746 echo ' {"command":"generate-tags", "filename":"test.c"}'
48- ) | ${CTAGS} --_interactive $NV | s
47+ ) | ${CTAGS} --_interactive | s
4948
5049echo
5150echo generate tags from data
@@ -54,4 +53,4 @@ size=$(filesize test.rb)
5453(
5554 echo ' {"command":"generate-tags", "filename":"foobar.rb", "size":' $size ' }'
5655 cat test.rb
57- ) | ${CTAGS} --_interactive $NV | s
56+ ) | ${CTAGS} --_interactive | s
0 commit comments