octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55281] [MXE Octave] Cannot strip script files


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55281] [MXE Octave] Cannot strip script files
Date: Sun, 30 Dec 2018 09:30:56 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Follow-up Comment #6, bug #55281 (project octave):

The attached patch should run on any POSIX-compatible system. Thanks for the
hint to head [1] and cut [2].

If I understand correctly, using "head" to read the first line of a binary
file could potentially be quite slow (if the first LF character happens to
occur very late in a very large file). But I don't know of any
POSIX-compatible syntax to read only a certain number of bytes from a file.
FWIW, I didn't notice any slowdown on my system.

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html
[2]: https://pubs.opengroup.org/onlinepubs/007904875/utilities/cut.html

(file #45789)
    _______________________________________________________

Additional Item Attachment:

File name: bug55281_strip_no_scripts_v2.patch Size:0 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55281>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]