Bug 52759

Summary: bad parameter parsing
Product: [Retired] Red Hat Linux Reporter: Enrico Scholz <rh-bugzilla>
Component: w3mAssignee: Satoru SATOH <ssato>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-30 00:22:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2001-08-28 19:29:21 UTC
The w3m-wrapper of w3m-0.2.1-9 script uses the statement

| if [ -f $http_home ]; then
|   [ -z "$@" ] && exec $w3m_bin $http_home
| fi

bash-2.05-8 produces an errormessage at the "$@" statement when called with
multiple arguments:

| $ w3m -cookie 'http://bugzilla.redhat.com'
| /usr/bin/w3m: [: -cookie: binary operator expected


I suggest to use '[ -z "$*" ] && exec ...' instead of.

Comment 1 Satoru SATOH 2001-08-30 00:22:01 UTC
Thanks.
I fixed as you said at 0.2.1-10.