|
From: | Shigio YAMAGUCHI |
Subject: | Re: [BUG] global abnormally exits when a token contains '@' |
Date: | Thu, 27 Nov 2014 14:22:39 +0900 |
Hi,
I found a bug in the global command.
------------------------------
$ cat sample.sh
echo $@
echo $@
$ GTAGSPYGMENTSOPTS= gtags --gtagslabel=pygments
$ gtags -d GRTAGS
__.COMPACT __.COMPACT
__.COMPLINE __.COMPLINE
__.COMPNAME __.COMPNAME
__.VERSION __.VERSION 6
address@hidden 2 @n 1-1
echo 2 @n 1-1
$ global -xs '.*'
address@hidden 1 sample.sh echo $@
global: Abbrev character must be a lower alphabetic character. ()
------------------------------
global exits with the message "Abbrev character must be a lower
alphabetic character. ()".
The cause is that in put_compact_format() uncompress() is applied
repeatedly when a tagline has two or more line numbers.
e.g.
uncompress("@n", "$@"); // 1st iteration
uncompress("$@", "$@"); // 2nd iteration -> error
The attached patch ensures uncompress() is called only once.
Thanks,
_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global
[Prev in Thread] | Current Thread | [Next in Thread] |