Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
'loop' vs 'loop=device' in _mount
- X-seq: zsh-workers 27232
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: 'loop' vs 'loop=device' in _mount
- Date: Wed, 26 Aug 2009 18:03:32 -0400 (EDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author