bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

htags fails agaisnt odd filename


From: KAICHO
Subject: htags fails agaisnt odd filename
Date: Tue, 23 Feb 2016 13:34:25 +0900 (JST)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]