zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: du(1) completion and a little $RANDOM problem
Date: Thu, 17 Jul 2003 12:17:19 +0200	[thread overview]
Message-ID: <10667.1058437039@gmcs3.local> (raw)
In-Reply-To: <1030716114641.ZM8844@candle.brasslantern.com>

Bart wrote:
> On Jul 16, 12:30pm, Peter Stephenson wrote:
> } 
> } for best results.  (I wonder if we could autodetect or at least guess
> } some of these at startup where guessing wrong isn't too painful?)
> 
> Sven, Oliver and I have had several threads about this dating back a
> very long time -- see for example zsh-workers/10998.

That discussion resulted in _pick_variant. You need to be fairly
confident that running the command in question to see what it is is
safe and quick though.

I'd have thought it would be safe for du as it doesn't have any
destructive modes of operation that I'm aware of. On Solaris 8, du
--version produces:

  du: illegal option -- -
  usage: du [-a][-d][-k][-r][-o|-s][-L] [file ...]

I don't have access to any other systems to see what they do. The trick
used by _finger to see what options are available is quite nice.
Otherwise the best way to determine what options are available tends to
be a big case statement checking $OSTYPE (after using _pick_variant to
check for GNU).

Oliver

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________


  parent reply	other threads:[~2003-07-17 10:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16 11:16 Guillaume Chazarain
2003-07-16 11:30 ` Peter Stephenson
2003-07-16 11:46   ` Bart Schaefer
2003-07-16 12:09     ` Sven Wischnowsky
2003-07-17 10:17     ` Oliver Kiddle [this message]
2003-08-20 10:35   ` PATCH: " Oliver Kiddle
2003-08-20 14:22     ` Doug Kearns
2003-08-21 12:35       ` Oliver Kiddle

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=10667.1058437039@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --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).