zsh-workers
 help / color / mirror / code / Atom feed
From: "Benjamin R. Haskell" <zsh@benizi.com>
To: zsh-workers@sunsite.dk
Subject: 'loop' vs 'loop=device' in _mount
Date: Wed, 26 Aug 2009 18:03:32 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.01.0908261753090.18590@hp.internal> (raw)

When using completion for mount options, I often run into the annoyance 
that the 'loop' option prompts for the loopback devide to use.  Really, 
though, one needn't specify any device in particular...  Says the man-page 
for 'mount':

'''
If no explicit loop device is mentioned (but just an option `-o loop' is 
given), then mount will try to find some unused loop device and use that.
'''

I'll likely just patch my own completion script to change:

Completion/Unix/Command/_mount, line 325:
-      'loop[use loopback device]:loopback device:_files'
+      'loop[use loopback device]'

since I couldn't tell how to incorporate an '-o' option that accepts an 
optional argument.  But, I also figured I'd mention it here in case 
someone with better completion-fu could work out a simple patch to correct 
the behavior (which is a bug for certain values of bug).

Best,
Ben


             reply	other threads:[~2009-08-26 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 22:03 Benjamin R. Haskell [this message]
2009-08-27 20:37 ` Peter Stephenson
2009-08-28 14:59   ` Benjamin R. Haskell

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=alpine.LNX.2.01.0908261753090.18590@hp.internal \
    --to=zsh@benizi.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).