zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@emufarm.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Preventing sorting in completers
Date: Mon, 14 Jul 2003 09:11:15 -0700	[thread overview]
Message-ID: <20030714161115.GA25478@lorien.emufarm.org> (raw)
In-Reply-To: <5798.1058195468@csr.com>

Peter Stephenson wrote:

> Bart Schaefer wrote:
> > On Jul 12,  7:49pm, Philippe Troin wrote:
> > } 
> > } zstyle ":completion:*:processes" command \
> > }   'ps -u $UID -o ''pid tty s args'' --forest'
> > 
> > Hmm.  When I try to use that set of "ps" arguments, I get no completions
> > at all.  Some investigation reveals that "ps" is giving
> > 
> > ERROR: TTY could not be found.
> 
> My guess is your system is using stdout to decide what the tty is, which
> is explicitly closed.  Try using 1>&2 on the ps command line.  (Or
> something gets closed.  Is it stdin?  Anyway, reopen it.)

I just looked at this, and I get the same error just by running

    ps -o pid tty s args

which is effectively what's getting run above.  I believe that -o
requires *one* argument, with either space or comma separated fields:

    ps -o 'pid tty s args'

or

    ps -o pid,tty,s,args

both of which succeed, and print out a perfectly decent process listing.

I would guess that the double single quotes that Philippe is using
should probably be single quotes escaped by backslashes, or double
quotes, or just using commas to separate them.

My version of ps, on Linux, is 2.0.10.

Danek


  reply	other threads:[~2003-07-14 16:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87wuenkuod.fsf@ceramic.fifi.org>
2003-07-13 18:17 ` Bart Schaefer
2003-07-14 15:11   ` Peter Stephenson
2003-07-14 16:11     ` Danek Duvall [this message]
2003-07-14 16:31       ` Bart Schaefer
2003-07-14 16:41     ` Peter Stephenson
2003-07-14 17:11       ` Bart Schaefer
2003-07-14 17:31         ` Peter Stephenson
2003-07-14 19:14           ` Bart Schaefer
2003-07-15  9:42             ` Peter Stephenson
2003-07-15 16:16               ` Bart Schaefer
2003-07-15 18:35                 ` Peter Stephenson
2003-07-22 19:51                   ` Philippe Troin
2003-07-23  9:23                     ` Peter Stephenson
2003-07-23 19:12                       ` Philippe Troin
2003-07-24  9:28                         ` CVS (Re: Preventing sorting in completers) Oliver Kiddle
2003-07-14 20:13       ` Preventing sorting in completers Philippe Troin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030714161115.GA25478@lorien.emufarm.org \
    --to=duvall@emufarm.org \
    --cc=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).