Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: time command with shell builtins
- X-seq: zsh-users 28812
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: time command with shell builtins
- Date: Thu, 26 Jan 2023 18:26:36 +0100
- Archived-at: <https://zsh.org/users/28812>
- In-reply-to: <CAH+w=7bA=WjjOD4VSbvMX0DgUC1u75iE7Dd7Rmz15Y8Tfd3=9Q@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- References: <Y86ZkYooJ9Kf4xCE@localhost> <CAHYJk3QD8NbCqt0LdXshiVf6W3GQLnDzo6-1mj0qCJOTkHFGRA@mail.gmail.com> <Y87Ws8PrZY8W3Oao@localhost> <CAHYJk3Tu5POCU08-g1dr2p284p89Xak5XjLSV6J8gWdQnOXDeA@mail.gmail.com> <Y8+3h5OXqtpkyewM@localhost> <Y9BlzD/hb4bwHAmb@localhost> <CAH+w=7Z3Srhc02WEmBv_m6YiGUm4mPw2oxNqfTAcm6kqm+GE=w@mail.gmail.com> <Y9B7A8dWLiZNXKfW@localhost> <Y9Ko+7GqksX+LKww@localhost> <CAH+w=7bA=WjjOD4VSbvMX0DgUC1u75iE7Dd7Rmz15Y8Tfd3=9Q@mail.gmail.com>
- Reply-to: dominik.vogt@xxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:TIgVXE0Z+9A=;tFPiPUXegPCXE0ZGakXfizLfm5J XfBPWQ5qpOComoOotjdSfFu4Q2LaF3KAyh5RNbHTRZQ0ORb7yVYSTAWnv9IH9OS+8Oq2QSyVe ZotTt37p9IFzA7lRubHvpir8f1yKmivDGtdchbdYjyM/eWrh/mXhlyPP0feZXTKGm36E4Um/T Ap2WndNE145BHg3rAmzrAmjuuym0X6ozgKp3MzlKc7+B+Q7pyErYbNx8Gfua9Jm4WmvYHWFnm fL0vT2iNMHYszl2+ovrZC7hM+QKgkW8dnOHCb0yAOUyXmEYtDQcbFlNvqMY2/0REKe+R+ebB1 lJtix+/wzd1pSPh07l3BGDI40MFc3AcHBVAapBs+qhSmmEwa5Iq02rtcrIciY6dttjI29C8TY CGgBB+1lunq7g/Dyb0HsIeprYNgUW2hnJZX6vqM6soLeYW7H2KPzgqXmPs4ngDhTUGnU+4Sin TXmC2jPmaKV4yE/2acOEZsBW07My0wf7mNa5mKWgyic3cKUALkMBqcNYhhe3R16OO7lYC+Uki Al8LqyXiAO8+anUJRudVMJU8venPbNUVPoruYmIw/MdGKIfk+fuB3Nw/UF3yEoSkPSlIv05by ILAqGvqHKzRzFOxB6/1wKJmmZZxulNsUIiPdkqYpkCndCbQ3njjGMNmFHSWHHT+eBa234oNij mrpDkeAfv6e1t3s15YmnDWJdhoubjJz1hT1yBBl4CPqnsY4fu8Pxuk4+YJcWXDAkjkzb8LZdi hdVZ5MTFcJdFb5vPnCHgc3w0cJGSP0O5IlOP7wgQPByH5edgQlLW48YQHNKZZ9ht6wH1xMR1/ +oAGxsjNTZkZ1bQS28tPLpBMZYZUZMPPWnsKrd1PLoiFZr2U2sbaExSxIhG6poRHr6q9JiFeD t/k+jGsMsfYUSrhXcb1UJpVas9O0gCq0min16Fkk0DJfHXw/IihnyRmIlcBCqT7i9RxJHH9nI /E7/QMvZ98kXHJvvhiwAmMHS8ZI=
On Thu, Jan 26, 2023 at 08:56:34AM -0800, Bart Schaefer wrote:
> On Thu, Jan 26, 2023 at 8:23 AM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> >
> > Is there a more elegant way to chek if the command is in a
> > blacklist than this one?
> >
> > if [[ -z "${1:|_zsh_recordtime_skip_list}" ]]; then
Thanks.
> Alternate methods, judgement on elegance reserved:
>
> if (( ${_zsh_recordtime_skip_list[(Ie)$1]} )); then
^^^^^^^^
What is the meaning of flags inside brackets? I can't find
anything in the man page.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author