# Newer versions of Hpricot issue a warning

**URL:** <https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521>\
**Category:** Ruby\
**Created:** [December 28, 2006, 5:36am UTC](https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521 "2006-12-28T05:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbiker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Post date:** [December 28, 2006, 5:36am UTC](https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521/1 "2006-12-28T05:36:58Z")

</div>

I have written a script that requires ‘hpricot’. I use mswin32 versions

It runs without issuing any warnings when using hpricot 0.4, 0.4.43,  
0.4.52, 0.4.59

With newer versions of hpricot it issues the following warning.

0.4.76  
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.76-mswin32/lib/hpricot/tag.rb:34:  
warning: `\*’ interpreted as argument prefix  
ARGV[0] USI\_Segment1.htm ← script output

0.4.86  
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.86-mswin32/lib/hpricot/tag.rb:34:  
warning: `\*’ interpreted as argument prefix  
ARGV[0] USI\_Segment1.htm ← script output

0.4.90  
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.90-mswin32/lib/hpricot/tag.rb:35:  
warning: `\*’ interpreted as argument prefix  
ARGV[0] USI\_Segment1.htm ← script output

0.4.92  
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.92-mswin32/lib/hpricot/tag.rb:35:  
warning: `\*’ interpreted as argument prefix  
ARGV[0] USI\_Segment1.htm ← script output

#######################################################################3  
Portion of the code where the warning is issued.

#!c:/ruby/bin/ruby -w

# -_- coding: ISO-8859-1 -_-

require ‘hpricot’

######################################################################

# module definitions eliminated since they do cause the warnings to be

issued  
######################################################################

# 

# main

# 

# obtain the filename of the html file to process

input\_file = ARGV[0] || ‘USI\_Segment1.htm’  
puts “ARGV[0] #{ARGV[0]}”

# derive the filename of the csv output file

basename = File.basename(input\_file, ‘htm’)  
output\_file = basename + ‘csv’

**END**  
the rest of the code snipped since it does not cause the warning to be  
issued.  
#######################################################################

I believe that this demonstrates a bug in hpricot rather than in my  
code. I did try to post a bug report on [code.whytheluckystiff.net](http://code.whytheluckystiff.net)  
webpage. However I do not have an account.

Please forward to the appropriate destination.

---

<div class="post-metadata">

**Author:** ![bbiker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Post date:** [December 28, 2006, 7:11am UTC](https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521/2 "2006-12-28T07:11:12Z")

</div>

On Thu, Dec 28, 2006 at 01:35:12PM +0900, bbiker wrote:

> I have written a script that requires ‘hpricot’. I use mswin32 versions
> 
> It runs without issuing any warnings when using hpricot 0.4, 0.4.43,  
> 0.4.52, 0.4.59
> 
> With newer versions of hpricot it issues the following warning.

Okay, there is a fix in Subversion. Thankyou!

As far as submitting tickets, you simply need a Rubyforge account.  
[http://code.whytheluckystiff.net/access/](http://code.whytheluckystiff.net/access/)

\_why
