Package: sgml2x
Version: 1.0.0-11.3
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

A run of docbook-2-html gives multiple warning messages like this:

    find: warning: you have specified the -maxdepth option after a
    non-option argument -type, but options are not positional (-maxdepth
    affects tests specified before it as well as those specified after it).
    Please specify options before other arguments.

While harmless (for now?), these warning messages take up the whole screen
and are very distracting.

The attached patch move "-maxdepth 1" to the front, and "find" is happy
again.  :-)

Many thanks!

Anthony Fok

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sgml2x depends on:
ii  jadetex    3.13-16
ii  openjade   1.4devel1-21.1
ii  opensp     1.5.2-11.1
ii  sgml-base  1.26+nmu4

Versions of packages sgml2x recommends:
ii  docbook-dsssl  1.79-8
ii  gtk-doc-tools  1.24-1

Versions of packages sgml2x suggests:
pn  alcovebook-sgml  <none>
ii  docbook-dsssl    1.79-8
ii  gtk-doc-tools    1.24-1
pn  sgmltools-lite   <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJV8Ih7AAoJEOolALQSxZrP+x4P/iFpqKy4CGlRwuK7tF8FlRCd
Sg212xLI5iyOgfLg1qUo1+BVOmWHXVVEAY7GnnGN5OXU+2qOurG5OUjklad4pUOb
ZzJp0SotNUDNoyYZk+OlfcTtixPxPFPviZqryq3c3VamcKJ1s6VOzT/oZHRkHJu4
6J3zGlgH+oO7NGKRT4QlnYGk6wLg5We6vyZZxbQo/XlxC1P0y2Se/Fdbl74Z610D
VB9SbodwbpB2DF2QNXmjKsWwgs/OWrdRRWfNG37SSlBW+PnGOuhrqjx++QGtVakB
Lv7hoDS2+BUQ4r01s/02TVNQMrygP4M61ynL8E+YH+N3Z4FfGEMXlS1tQBVQgv3c
MVTpgfO3iXUQOpykc7aXPA8hHoN7qPFTEVlblSluI7s00Mm6EvUOX7kMJPDT0Rj0
0s+I6u6j9Fip7aDwSSMXmc8f50Zm3BO8cjzAfJMaOiToxS1mSa7eJZLpe0xVYTy2
0zjrfE69Ism1x2qlZ7UHTvs+TQdTPqZ7DGOuBAiu1vQErwQfuv6uQ7UWBuEwzJ1R
OU1Xz7ZJ5sSmZjokEPvjjOy2LCA3DAClD1xCideanbnYKAhyC+Og1tISAYOqaTD6
3C9QE3IQB2DoJOmRhpOpXJ+m7Y7T8dQEGfMin3N8Au4iIaWciG8cVq6mNV/ATs6D
O9xe73zAhGkAi2k8AilJ
=P147
-----END PGP SIGNATURE-----
--- a/bin/sgml2x
+++ b/bin/sgml2x
@@ -215,7 +215,7 @@
 files()
 {
     cd "$2"
-    find -type "$1" -maxdepth 1 ! -name '.*' -printf '%f\n'
+    find -maxdepth 1 -type "$1" ! -name '.*' -printf '%f\n'
 }
 
 ## insert $1 in set represented by the array named $2

Reply via email to