Package: switchconf
Version: 0.0.4-1
Severity: normal
Tags: patch

  $ switchconf -list
  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.
  
  foo
  bar


The problem is "find -type d -maxdepth 1".
It should be "find -maxdepth 1 -type d" instead.

I propose the patch:

--- /usr/sbin/switchconf        2005-04-28 19:15:43.000000000 +0200
+++ switchconf  2005-09-18 20:22:40.000000000 +0200
@@ -27,7 +27,7 @@
 
 list() {
     cd ${conf_top_dirs}
-    find -type d -maxdepth 1 | sed 's/^\.\/\?//' | grep -v 
"\(^\$\|${exec_dir_before}\|${exec_dir_after}\)" | sort
+    find -maxdepth 1 -type d | sed 's/^\.\/\?//' | grep -v 
"\(^\$\|${exec_dir_before}\|${exec_dir_after}\)" | sort
     exit 0
 }
 

Bye,

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to