duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] bash completion for duplicity


From: Jozef Riha
Subject: Re: [Duplicity-talk] bash completion for duplicity
Date: Sun, 1 Jul 2018 21:43:01 +0200

hello,

gpl header is now added to the file. regarding the first point.. i compiled bash3 3.2.48 released in 2009 and ran the following test:

cur="-foo"; [[ "$cur" == -* ]] && echo bar

ran fine and so did its legacy version:

cur="-foo"; if echo "$cur" | grep -q "^-"; then echo bar ; fi

the latest bash2 release is from 2002 and probably full of security bugs so i wonder whether we really want to be that much backward compatible.

btw zsh (as shell of my choice) completion file would be greatly appreciated as well :-)

kind regards,

jose

On Fri, Jun 29, 2018 at 4:15 PM, Kenneth Loafman <address@hidden> wrote:
We're under GPL v2, so yes, please stick a header on it.

Guess I don't make a good detective.  😊  Ah well.

...Ken
  

On Fri, Jun 29, 2018 at 8:27 AM Jose Riha <address@hidden> wrote:
btw. i've contacted the author of the script. reply:
https://twitter.com/mikeyneuling/status/1011917702057766912

j

On Wed, 27 Jun 2018, edgar.soldin--- via Duplicity-talk wrote:

> yeah,
>
> would have to be implemented cleanly of course. see no disadvantage though in having command line parameters parsed earliest.
>
> but it's all rhetorical anyway as long as nobody implements argparse first ;).. ede/duply.net
>
> On 26.06.2018 21:10, Kenneth Loafman wrote:
>> Reading through the docs, it wants to execute duplicity during the autocomplete to get the options, and leave no side effects.  That could be problematic.
>>
>> ...Ken
>>
>>
>> On Tue, Jun 26, 2018 at 7:54 AM edgar.soldin--- via Duplicity-talk <address@hidden <mailto:address@hiddenorg>> wrote:
>>
>>     On 26.06.2018 14:49, Aaron wrote:
>>     > Without digging into the detail, this:
>>     > http://argcomplete.readthedocs.io/en/latest/
>>     > apparently automatically collects options for bash completion from argparse, which feels like a sensible approach.
>>     >
>>     > Moving from Optparse to Argparse is on the roadmap already anyway:
>>     > https://bugs.launchpad.net/duplicity/+bug/1480565
>>
>>
>>     agreed, this approach looks much cleaner than a manually maintained list of options.. ede/duply.net <http://duply.net>
>>
>>     _______________________________________________
>>     Duplicity-talk mailing list
>>     address@hidden <mailto:address@hiddenorg>
>>     https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]