#3 absolute pathnames are regarded as options (Linux)

v1.0 (example)
closed-fixed
None
5
2014-08-17
2005-08-04
Anonymous
No

when calling htp with absolute pathnames (beginning
with "/") for the files on linux it thinks that these
are options to htp.
example (copy&paste from console):

-------------------------------------------------------------------------------------
bobby@schweinchen / $ htp
/mnt/daten/arbeit/webseiten/mathehomepage/test1/0Vorlagen/index.htp
/mnt/daten/arbeit/webseiten/mathehomepage/test1/index.html

htp 1.15 - HTML pre-processor
Copyright (c) 1995-96 Jim Nelson
Copyright (c) 2002-03 Jochen Hoenicke under Artistic
License
[Linux/Posix]

[*] unknown option
"mnt/daten/arbeit/webseiten/mathehomepage/test1/0Vorlagen/index.htp"
specified
[*] unknown option
"mnt/daten/arbeit/webseiten/mathehomepage/test1/index.html"
specified
Original author, Jim Nelson.
email: htp-discuss@lists.sourceforge.net
WWW: http://htp.sourceforge.net/

usage: htp [options] <source HTML file> <reformatted
HTML file>
htp [options] @<response file>
htp [options] @

See on-line reference for full details.

This is software is released unter the Artistic License.
------------------------------------------------------------------------------------

I think that the usage of "/" for options should be
completely disabled on linux. Or there should be at
least an extra option (e.g "--") which marks the end of
options. And everyting after this should then be
regarded as in-/output files. Otherwise htp is nearly
unusable in scripts.

Thanks&Bye!
Robert (karlderkleine@gmx.de)

Discussion

  • Logged In: YES
    user_id=222448

    We should consider what you propose (either disable
    "/" for options or add the "--" marker).
    But of course there is a very easy work-around for your
    problem:
    $
    cd /mnt/daten/arbeit/webseiten/mathehomepage/test1/
    $ htp 0Vorlagen/index.htp index.html

     
    • status: open --> closed-fixed
    • assigned_to: Jochen Hoenicke
    • Group: --> v1.0 (example)
     
  • This is now finally fixed in htp-1.18. I decided to force the options to start with "-" on all OSes.