Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: umount /f/b<TAB> -> /foo/bar
- X-seq: zsh-workers 39080
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: umount /f/b<TAB> -> /foo/bar
- Date: Fri, 19 Aug 2016 22:35:13 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=o8I223WrSzsZiy5R1dPbMj1rRGbHa43Cy6Pv8MaCzCM=; b=xm9Hk5X60EHimPi02pRxz31Ud3FB5yAYn4hqzOqVf/kvlcIy1+0qtV0K7lAi04KQkB GJhuDM2SNlliKawTylqFrJsKox6T839l7KDdJ/AVlqzUA1IQ+O6t0ZBUUGKk1f7iJEse fFWCuLZ2XI96Jknddtw68/z9gl15L2aj2ahYCy3FEq8nP7s2hIZuO6KJvYdCPK1ED1T6 hrUIRVEus5JRVLKMB7A67m8DQLoYA4I2L0AYK9Cs7LJ1O9r1eZ0ljWk8cnCbvRit7bRO 1BZ9Q73BeJD1w6mgznCTGsbk32WCZE9816xxocknLnL6AZnYjRAoeJ2eHdy5DyKSX9Ja l8Kg==
- In-reply-to: <20160819155651.GA9598@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160819155651.GA9598@fujitsu.shahaf.local2>
On Aug 19, 3:56pm, Daniel Shahaf wrote:
}
} + # This codepath honours any -M matchspec parameters.
} + () {
} + local -a tmp_buffer
} + compadd -A tmp_buffer "$__gopts[@]" -a files
} + matches+=( "${(@)tmp_buffer/$canpref/$origpref}" )
} + }
} + else
} + # ### Ideally, this codepath would do what the 'if' above does,
} + # ### but telling compadd to pretend the "word on the command line"
} + # ### is ${"the word on the command line"/$origpref/$canpref}.
} + matches+=(${${(M)files:#$canpref*}/$canpref/$origpref})
} + fi
Perhaps some variation on
compadd -M "B:${(b)origpref}=${(b)canpref}" -a files
?? Some cases of mount point names containing unusual characters might
be a little weird.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author