From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14501 invoked from network); 6 Apr 2022 20:12:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Apr 2022 20:12:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1649275944; b=h4UivVBuSP/C8Dly4Bwb8QKe36zT2vYnnHKYW7Mf/iP4/rx+pizBRQfb2R0OyMCYkULaJYsNGs MAPvIWd7yVK91l6yH3fDP7t9dJ5GW/VFHUabqjWWT8kmw+dAnLW3zMecPsjuNa9hU+lvo5BTPg acoMHvzOQlyv5w9YHcLltNVQUQlGQJOTenSE9sHYZUWoV1u2Idps5KOKkuxrtuWjelhZhbW4Vo 2RHHiAPJR72ajYhrmxLKrFVX6tE7x/UGpajIf6P9CPJUyN6TyrAON3vyjCTZvhuRvTzxe46/mX JWTzOFeIf4LcSu5iORs1db5Ao0WOlKPtPX0nlWia+Etgmg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f46.google.com) smtp.remote-ip=209.85.208.46; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1649275944; bh=hSH9RRUvsO+ysmJp3u0yoLPGasGApSTP+MDsTmEAZL4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=X7HUr9hsd/VAFEszS73J1XwQe6RJg8upy0FUMImPXczXx2d1X+RapAFUlXwpEjRNRassVzjnJ6 MejEbQT5amy3h10/pwbMB6d8Nld3rm+agfgsmpzusqIDfhSu5/W74v4IO6mnEW3MB+Tgm9Zo+X bu+UHhKP2yOhjAfr+Qx7WEGx9J8OK/M5gtnay1FthQjwLPgJcOUEuGNAUMpi2Or0IJWi/hcRhP cu3Hupkc1uM+BK/IbwpRrv1pzUQoW8ztmdAX+H60kq84MjaJRU6ux4CI8nRk/vaOVOFAEhzXO9 7+tnyi2DM/eJDSMO3gO7BrnAeJe+sxkGbq4DBBGpxCuPxw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=IGB5G/jq3GKkSkO43xhzb42x42pxdtDPjsS+qjGP7+Q=; b=ClrdfuT/fHVuuPtVeG6XQ4bItu 4hnxOPHBPVaELG6vuuC3NfhpZjHxg7xZQJiu8l4lw48NOcKZo263BiOjiKTKH72qiXQ+njH96xJmI mK+6EdzGDAUV2YaWAajwcz9SpKZTYPN2C8xDjnvXK4TWFTXqYN725IBa/MnJt9xHY98mxtTnEIpxg gpurISsL050OqriQmAxZYNEOxuRTKx6M1ajApZboGN9cyavGLdsbcMLYUmqJPjEDi772RYJJWA99D 7nMuYuXL+AJXGeHEl/2DAcWx5x023VsHMyeHkPnUco4uHaMagm4pwccj2iX+Y3nsVqRr9kUgZzxpN /sMWP5Ag==; Received: from authenticated user by zero.zsh.org with local id 1ncC0r-000Ghs-Bx; Wed, 06 Apr 2022 20:12:21 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f46.google.com) smtp.remote-ip=209.85.208.46; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f46.google.com ([209.85.208.46]:40877) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ncC0M-000GNj-2y; Wed, 06 Apr 2022 20:11:50 +0000 Received: by mail-ed1-f46.google.com with SMTP id q26so3962454edc.7 for ; Wed, 06 Apr 2022 13:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IGB5G/jq3GKkSkO43xhzb42x42pxdtDPjsS+qjGP7+Q=; b=FC9gjYd+D2kuAKEvAL0L1oLKBFyTeBs/ofayJ8E4ZYpbwKRddpbrlZGNw8qjFGNvtB CQwflqlxIjOnbRuhTBIssjrodYxeoUdseBdiyoDKg7oyDPlG8JB9B0r+sOy8+vWrqP0Y yPPYS7E548JUjiscY9ACC88ZANMPYCg1UOovuasKSXJbkBcbeFAAI54oTCtzFIOOgZF9 bQnkt1dNf+IS+xpN8kvKGv5DhT5S1jlkS0TFuUPk2SW+m2Bamc8Omf6a6g8aMeWjeydr 0McA7vohNeX50O4+d1IZ1NqluAMyI3oYKb+jalotQaUeMb9bS/Wwv/G8ivOVFw0vyBqV DVHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IGB5G/jq3GKkSkO43xhzb42x42pxdtDPjsS+qjGP7+Q=; b=AusTNiIj93/ob4dBUnEh5qtdnCBKyMrsfEFSd43yBi2epa2quOIcyf1lNBE9q/jcHF xTn8MVZTGPTbtdpOIzPbguykMgED98W9zmar+47Ewhsa2z8+XU9uDG5x8CGHO7m6U9y4 wPQQmxNLeLEOyxbmts6REXQxk0Q1SehJ5OfGLq99Ms212L3vB9Meu6/qNbCL1ZaYujAA 1GCai7idWqcNgf/1eD93kb9JnvX4HHdmCepgbeBGECzVl7uQbxKPOXnsJRTQbaES5EFD 30aG0Z0m61+7eognD6jq1hnVmI9wSEDPnHM74kS8ZHQAcegQXtz7NqRRnt6ciFj1jKQ6 ofyA== X-Gm-Message-State: AOAM530ppkTAelVg1T/F+yY7wscJ/0imDPNbpWiF2+4gRF0nySP9TQEf vFzvJSx3t1BZgqOlOOOq3YIwHLyJlDT1oO481YH4lQ== X-Google-Smtp-Source: ABdhPJwrVoEha5bAWUiDmLrsqDM39V1DLzyJL3+xVH27d7T3d8k2GjUV5OKvyoCywddNmE6wxSMFQSbDH7lSb2vlhzs= X-Received: by 2002:a50:d711:0:b0:410:a51a:77c5 with SMTP id t17-20020a50d711000000b00410a51a77c5mr10582414edi.154.1649275909317; Wed, 06 Apr 2022 13:11:49 -0700 (PDT) MIME-Version: 1.0 References: <875yo3b3ka.fsf@smokey> <87bkxfw24f.fsf@smokey> In-Reply-To: <87bkxfw24f.fsf@smokey> From: Bart Schaefer Date: Wed, 6 Apr 2022 13:11:38 -0700 Message-ID: Subject: Re: _time_zone gives me candidates other than timezones To: Jordan Russell Cc: "Jun. T" , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 50004 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Apr 5, 2022 at 4:19 PM Jordan Russell wrote: > > I like Jun's solution. That's good, because it's already been added to the repository. However, I did notice that if one explicitly attempts to start a timezone name with "z" or "l", the lower case file names are in fact offered (instead of, for example, correcting to Zulu). > I still have reservations about completing right/ > and posix/ (they could be flags instead to the calling program). Do you mean the calling program might use those as keywords (with no leading hyphen[s])? Or do you mean the caller of _time_zone should [be able to] specify whether to include them? > >I guess it comes down to whether you call _time_zone to find a zoneinfo > >/file/ or a timezone /name/. [...] > > But if you're completing filenames you'd also need to recover > >the prefix which is lost when using -W as is used now. Further, if you start completing the tail of an absolute path, normal file completion occurs.