Package: preprocess Version: 1.1.0+ds-1 Severity: normal Tags: patch 1. Have the following files: common.sh: first.sh: # #include "common.sh" second.sh: # #include "common.sh" result.sh: # #include "first.sh" # #include "second.sh"
2. Run the command 'preprocess result.sh' Expected: no errors, just empty lines in output Actual: preprocess: error: detected recursive #include of 'common.sh' -- System Information: Debian Release: 7.6 APT prefers stable APT policy: (990, 'stable'), (700, 'unstable'), (500, 'experimental'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: armhf armel i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages preprocess depends on: ii python 2.7.3-4+deb7u1 ii python2.6 2.6.8-1.1 ii python2.7 2.7.3-6+deb7u2 preprocess recommends no packages. preprocess suggests no packages. -- no debconf information
--- /usr/lib/python2.7/dist-packages/preprocess.py 2014-08-21 09:29:02.760427203 +0400 +++ preprocess.py 2014-08-21 09:28:45.516730105 +0400 @@ -453,7 +453,7 @@ defines = preprocess(fname, fout, defines, force, keepLines, includePath, substitute, contentTypesRegistry=contentTypesRegistry, - __preprocessedFiles=__preprocessedFiles) + __preprocessedFiles=__preprocessedFiles[:]) elif op in ("if", "ifdef", "ifndef"): if op == "if": expr = match.group("expr")