Public bug reported:

(ubuntu) ~ lsb_release -rd
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
(ubuntu) ~ apt-cache policy ipset
ipset:
  Installed: 6.11-2
  Candidate: 6.11-2
  Version table:
 *** 6.11-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status


The ipset man page indicates the '-quiet' option should "suppress any
output to stdout and stderr".

But,

root@ubuntu:~# ipset -quiet list
Name: my-list
Type: hash:ip
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 8276
References: 0
Members:

This makes scripts inconsistent/ugly because 'list' must redirect
stdout/err, while '-quiet' works with other commands.

Example,

if ipset list my_list > /dev/null 2>&1 ; then    # Because "ipset -quiet list 
mylist" is not quiet.
  ipset -quiet flush my_list
fi

** Affects: ipset (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1209347

Title:
  "ipset -quiet list [set_name]" should not output.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipset/+bug/1209347/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to