zsh-workers
 help / color / mirror / code / Atom feed
* 'loop' vs 'loop=device' in _mount
@ 2009-08-26 22:03 Benjamin R. Haskell
  2009-08-27 20:37 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin R. Haskell @ 2009-08-26 22:03 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-28 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-26 22:03 'loop' vs 'loop=device' in _mount Benjamin R. Haskell
2009-08-27 20:37 ` Peter Stephenson
2009-08-28 14:59   ` Benjamin R. Haskell

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).