From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: Re: xl command autocompletion: domain names Date: Wed, 6 Nov 2013 13:18:51 +1300 Message-ID: References: <21102.35201.728312.130566@mariner.uk.xensource.com> <1383231830.25018.100.camel@dagon.hellion.org.uk> <21113.4284.248761.181909@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21113.4284.248761.181909@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, Nov 6, 2013 at 4:37 AM, Ian Jackson wrote: > Matthew Daley writes ("Re: xl command autocompletion: domain names"): >> I guess most autocompletions don't need to access information with a >> different privilege level. Domain names don't seem like they should be >> privileged information (that is, to a user that can already run `ps` >> on the toolstack domain), they just de facto are right now. > > Yes. > >> On Fri, Nov 1, 2013 at 4:03 AM, Ian Campbell wrote: >> > I don't necessarily object to setting the process title, it feels a bit >> > 1980s/sendmail-ish to me but that might just be me ;-) > > Right. > >> Can't say I have 80s UNIX experience ;) > > The problem with it from my point of view is that it's very difficult > to make it reliable. I don't mind setting the title for the benefit > of admins, but automatically grepping processes out of ps listings is > pretty poor and shouldn't be done in bash-completion IMO. A quick grep through the existing bash-completion scripts doesn't show any uses of ps, so that is in your favour. I guess I'll can this idea for getting the names for now then. The thing is, a completion script for xl that doesn't handle domain names seems a little pointless... - Matthew > > Ian.