htags fails agaisnt odd filename

KAICHO <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <[email protected]>
Hi,

This is just a small issue and it is easy to avoid by
removing/renaming the file which has odd filename.


What is your environment (OS)?:
CentOS 5.11(Linux x86_64)

Which version of GLOBAL are you using?:
6.5.2

What did you do? (command line)
# htags

What did you expect from it?
exit without errors

What was occurred? (as is) 
# htags
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
htags: command failed in xargs_read().
#

This is caused by an file which has odd filename, includes
'\''(on Unix, probably '"' on Windows). htags fails with
the error above on the directory:

# ls -al
total 28
drwxr-xr-x  2 root   root    4096 Feb 23 11:47 .
drwxr-xr-x 23 apache apache 20480 Feb 23 11:42 ..
-rw-r--r--  1 root   root      60 Feb 23 11:43 a'b.c
#

To fix this, libutil/xargs.c needs to handle the
case that QUOTE is in filename, and escape them
if necessary.


Fortunately, gtags works fine even against these odd
filename.

Regards,
KAICHO
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.