Date: Fri, 29 May 2020 15:15:11 +0200 From: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> To: Freebsd hackers list <freebsd-hackers@freebsd.org> Subject: Re: Introduce ifconfig -a -g groupname Message-ID: <20200529131511.gwahkbg6j7bp33d3@nerd-thinkpad.local> In-Reply-To: <f2590459-6207-32c2-ca0e-212c1f4f0765@grosbein.net> References: <f2590459-6207-32c2-ca0e-212c1f4f0765@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--4zqp7ursyypken3p Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 29, 2020 at 07:57:23PM +0700, Eugene Grosbein wrote: >Hi! > >Currently "ifconfig -a" command that shows status of network interfaces >may be combined with flags -d or -u to limit the list to interfaces that a= re down or up. > >The change https://reviews.freebsd.org/D25029 allows it to filter the list >by name of interface group with additional flag -g groupname, or -g ^group= name to negate condition >(this is different from "ifconfig -g groupname" that shows interface names= only >and that behaviour is not affected with the change). > >I chose caret symbol (^) was choosen to ease both scripted and interactive= usage >so it does not require extra quotation/escaping, but was told >that caret would require escaping in the zsh. > >So I ask for suggestions which symbol to choose instead of caret. >Benedict Reuschling suggested @ and I'm fine with it >if we don't care about Perl code that would require escaping it when runni= ng shell code. > >For thouse who interested, these are supposed usage examples: > >to exclude loopback from the list: > ifconfig -a -g ^lo >to show vlan interfaces only: > ifconfig -a -g vlan >to show tap interfaces that are up: > ifconfig -aug tap >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" Hi Eugene, There is at least some precedence for using @, because it is used to popula= te=20 SES information into /dev; see the example below: stat -s /dev/enc@n5006048005f1ebbe/type@0/slot@f/da11 [snip irrelevant information] So I don't mind it at all, and in fact look forward to it. :) Yours, Daniel Ebdrup Jensen --4zqp7ursyypken3p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAl7RCt9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN 87rkVQgAhgvbpUgQlOsG50bvDYtxlaE0QPLu8m8NQGJVK9Yzn2TE2FiQzrriicel pLUekzHR5HZQPW0DGbbDn8qznEfZ9xqRlNpZWW902BuPtm615s9GCJbMzlAyAIuA 6dIujM7ydYPghz6QVS4/y47kthOtAk/0+o3p/ostSOTUpkdf9zv0HvEoLKxDOtVO QbwM30j/SSvyyaa/kI0maPaW/lvxAkbTuYNBS8PlHPQTbfN2lkTPg8kX8rBVtI4O i3eQEakaOH/WGUhSt/M4+H3l5tZH/y2NA0B+FzKd4pvn/j2cTpui0eIiCNemnCBd ihbkBprrFg4Y4Y1tq36zM0ADBtWAkQ== =jEF8 -----END PGP SIGNATURE----- --4zqp7ursyypken3p--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200529131511.gwahkbg6j7bp33d3>