Skip to content

Cannot use command time in pipeline #9985

Closed

Description

@llenck
  • fish, version 3.6.1
  • current arch linux (Linux arch-lia 6.4.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 11 Aug 2023 11:03:36 +0000 x86_64 GNU/Linux)
  • sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= fish makes no difference

When running command time true, fish runs /usr/bin/time, as I'd expect. However, when running true | command time true, I get:
tmp

I believe this is a bug, as I'd expect fish to run time as found in PATH.

Activity

  1. added
    bugSomething that's not working as intended
    on Aug 25, 2023
  2. added this to the fish 3.7.0 milestone on Aug 25, 2023
  3. faho commented on Aug 25, 2023

    @faho
    Member

    Ha, cool.

    @zanchey: Pretty trivial to backport because I had to implement this twice - dunno where the rust version of detect_errors_in_decorated_statement is used yet, if it is at all.

    I would recommend also taking b454b3b, which does the same thing for and/or.

  4. added a commit that references this issue on Aug 26, 2023
  5. added 2 commits that reference this issue on Oct 6, 2023
    7815cb3
    4d59d9c
  6. added a commit that references this issue on Jan 27, 2024
    482616f
  7. locked as resolved and limited conversation to collaborators on Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions