You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2013/05/28 19:21:52 UTC

[Bug 6938] New: arguments not checked when option found

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

            Bug ID: 6938
           Summary: arguments not checked when option found
           Product: Spamassassin
           Version: 3.4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: spamassassin
          Assignee: dev@spamassassin.apache.org
          Reporter: jidanni@jidanni.org

$ spamassassin  x y z --version; echo $?
SpamAssassin version 3.4.0-r1197259
  running on Perl version 5.14.2
0

Compare
$ cat x y z -t
cat: x: No such file or directory
cat: y: No such file or directory
cat: z: No such file or directory
$ less x y z -t
x: No such file or directory
y: No such file or directory
z: No such file or directory
-t: No such file or directory

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 6938] arguments not checked when option found

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

Kevin A. McGrail <km...@pccc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kmcgrail@pccc.com

--- Comment #3 from Kevin A. McGrail <km...@pccc.com> ---
What real world problems does this issue cause?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 6938] arguments not checked when option found

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

--- Comment #5 from Karsten Bräckelmann <gu...@rudersport.de> ---
(In reply to jidanni from comment #2)
> OK I give up.

No need to give up. But to accept the fact that --version and --help options
commonly ignore any other options, just dump the info, and exit. This is in no
way specific to, nor broken behavior of 'spamassassin'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 6938] arguments not checked when option found

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

Karsten Bräckelmann <gu...@rudersport.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Karsten Bräckelmann <gu...@rudersport.de> ---
This is a special case with the --version and --help options.

  $ spamassassin

Without any arguments, it just sits there waiting for you to pump a message to
STDIN.

  $ spamassassin x
  warn: archive-iterator: unable to open x: No such file or directory

Errors out as expected.

  $ spamassassin x --version

Simply returns after printing version information. This is expected behavior.

Closing RESOLVED INVALID, aka "not a bug".


Jidanni, you might want to try the following command. Don't file a bug report
against coreutils, though.

  $ cat x --version

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 6938] arguments not checked when option found

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

jidanni@jidanni.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jidanni@jidanni.org

--- Comment #2 from jidanni@jidanni.org ---
$ less x --version
x: No such file or directory
--version: No such file or directory
$ less --version x
less 458 (GNU regular expressions)
Copyright (C) 1984-2012 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

OK I give up.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 6938] arguments not checked when option found

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6938

--- Comment #4 from jidanni@jidanni.org ---
I was surprised that a script was sending
spamassassin spamassassin --version
and no error was caught.
That the script was written by me is beside the point.

-- 
You are receiving this mail because:
You are the assignee for the bug.