Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.

Bug 128647

Summary: parenthesis in filename causes a2ps(1) to emit error message
Product: Red Hat Enterprise Linux 3 Reporter: Don Buchholz <buchholz>
Component: a2psAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.13b-40 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-29 12:00:16 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Don Buchholz 2004-07-27 13:55:17 EDT
Description of problem:
   It appears that a2ps(1) calls out to a shell to execute the 
   file(1) command and ascertain the file type.  When doing so,
   the '()' characters are not properly escaped, and the shell
   prints "syntax error near unexpected token `('".  The job
   does print, though.

Version-Release number of selected component (if applicable):
   4.13b-28

How reproducible:
   always

Steps to Reproduce:
1. create small file with '(' and/or ')' in the filename, e.g. "f(oo)"
2. execute "a2ps f\(oo\)"
  
Actual results:
$ a2ps f\(oo\) 
sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `/usr/bin/file -L f(oo)'
[f(oo) (plain): 1 page on 1 sheet]
request id is hp5000-606 (1 file(s))
[Total: 1 page on 1 sheet] sent to the default printer
$

Expected results:
a2ps f\(oo\) 
[f(oo) (plain): 1 page on 1 sheet]
request id is hp5000-606 (1 file(s))
[Total: 1 page on 1 sheet] sent to the default printer
$

Additional info:
Comment 1 Tim Waugh 2004-07-29 12:00:16 EDT
This has been fixed in the Fedora development stream and will appear
in a future release of Red Hat Enterprise Linux.  Thanks for the report.