#230 djuvsed, option -e 'select <nr>' not working on windows

djvulibre
closed
nobody
None
5
2014-08-19
2014-02-15
No

While helping someone out on ebooks.stackexchange.com, exploding a large .djvu file using djvused I found my method, tested and working on Linux, would not work on Windows.

The problem seems to be with the -e option and 'select' with an argument:

djvused large.djvu -e 'select 5; save-page-with page_05.djvu'

will not work under Windows (3.5.25 and 3.5.24 tested), and show the usage help. Just specifying 'select' works, but 'select 5' already triggers the help page to be displayed.

Creating a file with the lines two commands as lines and using -f works fine and gives correct results.

There is also the original answer that triggered the question mentioned above, which includes python scripts (without and with the workaround), to automate the 'explosion' of the .djvu file.

Related

Bugs: #230

Discussion

  • Leon Bottou
    Leon Bottou
    2014-02-15

    This is strange. I just downloaded the most recent windows binary and ran your
    djvused example. No error.

    Then I realized that you are using single quotes to delimit the '-e' argument.
    The windows command prompt does not recognize single quotes like the unix
    shell does. You have to use double quotes.

    My personal advice is to install Git for Windows (msysgit) which comes
    with a nice bash shell. Then you can forget about "C:>".

    • L.

    On Saturday, February 15, 2014 07:17:22 AM Anthon van der Neut wrote:


    [bugs:#230] djuvsed, option -e 'select <nr>' not working on windows

    Status: open
    Created: Sat Feb 15, 2014 07:17 AM UTC by Anthon van der Neut
    Last Updated: Sat Feb 15, 2014 07:17 AM UTC
    Owner: nobody

    While helping someone out on [ebooks.stackexchange.com][1], exploding a
    large .djvu file using djvused I found my method, tested and working on
    Linux, would not work on Windows.

    The problem seems to be with the -e option and 'select' with an
    argument:

    ~~~~
    djvused large.djvu -e 'select 5; save-page-with page_05.djvu'
    ~~~~
    will not work under Windows (3.5.25 and 3.5.24 tested), and show the usage
    help. Just specifying 'select' works, but 'select 5' already triggers the
    help page to be displayed.

    Creating a file with the lines two commands as lines and using -f works
    fine and gives correct results.

    There is also the [original answer][2] that triggered the question mentioned
    above, which includes python scripts (without and with the workaround), to
    automate the 'explosion' of the .djvu file.

    [1]: http://ebooks.stackexchange.com/a/944/60
    [2]: http://ebooks.stackexchange.com/a/935/60


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/djvu/bugs/230/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #230

    • Thanks for the quick reply,

      I was pretty sure that I tested the use of double quotes as the first
      thing after firing up a Windows VM, and
      only tried other things when I got the help page when usingdouble quotes
      as well.
      Unfortunately I cannot scroll back far enough in the command prompt
      window to see what I did wrong.

      I tried myself once more and with proper syntax and double quotes things
      work for me as well.

      I'll close the issue and hope you forgive me this blooper :-[

      Regards
      Anthon

      On 2014-02-15 14:15, Leon Bottou wrote:

      This is strange. I just downloaded the most recent windows binary and
      ran your
      djvused example. No error.

      Then I realized that you are using single quotes to delimit the '-e'
      argument.
      The windows command prompt does not recognize single quotes like the unix
      shell does. You have to use double quotes.

      My personal advice is to install Git for Windows (msysgit) which comes
      with a nice bash shell. Then you can forget about "C:>".

      • L.

      On Saturday, February 15, 2014 07:17:22 AM Anthon van der Neut wrote:

      ------------------------------------------------------------------------
      
      *[bugs:#230] <http://sourceforge.net/p/djvu/bugs/230/> djuvsed,
      option -e 'select ' not working on windows *
      
      *Status:* open
      *Created:* Sat Feb 15, 2014 07:17 AM UTC by Anthon van der Neut
      *Last Updated:* Sat Feb 15, 2014 07:17 AM UTC
      *Owner:* nobody
      
      While helping someone out on ebooks.stackexchange.com
      <http://ebooks.stackexchange.com/a/944/60>, exploding a
      large .djvu file using djvused I found my method, tested and
      working on
      Linux, would not work on Windows.
      
      The problem seems to be with the |-e| option and 'select' *with* an
      argument:
      
      ~~~~
      djvused large.djvu -e 'select 5; save-page-with page_05.djvu'
      ~~~~
      will not work under Windows (3.5.25 and 3.5.24 tested), and show
      the usage
      help. Just specifying 'select' works, but 'select 5' already
      triggers the
      help page to be displayed.
      
      Creating a file with the lines two commands as lines and using
      |-f| works
      fine and gives correct results.
      
      There is also the original answer
      <http://ebooks.stackexchange.com/a/935/60> that triggered the
      question mentioned
      above, which includes python scripts (without and with the
      workaround), to
      automate the 'explosion' of the .djvu file.
      
      [1]: http://ebooks.stackexchange.com/a/944/60
      [2]: http://ebooks.stackexchange.com/a/935/60
      
      ------------------------------------------------------------------------
      
      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/230/
      
      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      

      *[bugs:#230] http://sourceforge.net/p/djvu/bugs/230/ djuvsed, option
      -e 'select <nr>' not working on windows *

      Status: open
      Created: Sat Feb 15, 2014 07:17 AM UTC by Anthon van der Neut
      Last Updated: Sat Feb 15, 2014 07:17 AM UTC
      Owner: nobody

      While helping someone out on ebooks.stackexchange.com
      http://ebooks.stackexchange.com/a/944/60, exploding a large .djvu
      file using djvused I found my method, tested and working on Linux,
      would not work on Windows.

      The problem seems to be with the |-e| option and 'select' with an
      argument:

      djvused large.djvu -e 'select 5; save-page-with page_05.djvu'

      will not work under Windows (3.5.25 and 3.5.24 tested), and show the
      usage help. Just specifying 'select' works, but 'select 5' already
      triggers the help page to be displayed.

      Creating a file with the lines two commands as lines and using |-f|
      works fine and gives correct results.

      There is also the original answer
      http://ebooks.stackexchange.com/a/935/60 that triggered the question
      mentioned above, which includes python scripts (without and with the
      workaround), to automate the 'explosion' of the .djvu file.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/230/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #230

  • I can confirm that this works for me with double quotes and correct syntax. I was pretty sure I checked that, but obviously I did not (or missed some syntax error). I do not see how I can close this report, maybe I can't even though I am the orginator of the issue but not an adminstrator.

     
    Last edit: Anthon van der Neut 2014-02-15
  • Leon Bottou
    Leon Bottou
    2014-04-06

    • status: open --> closed