Bug 52759 - bad parameter parsing
bad parameter parsing
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: w3m (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Satoru SATOH
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-28 15:29 EDT by Enrico Scholz
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-29 20:22:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2001-08-28 15:29:21 EDT
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-29 20:22:01 EDT
Thanks.
I fixed as you said at 0.2.1-10.

Note You need to log in before you can comment on or make changes to this bug.