Skip to content

[llvm-lit] lit internal shell failing to parse and execute curly brace syntax #102382

@connieyzhu

Description

@connieyzhu

lit’s internal shell cannot recognize and execute the {} syntax, which is used in tests across lld and compiler-rt.

Example error message:

FAIL: lld :: ELF/error-handling-script-linux.test (9 of 2939)
******************** TEST 'lld :: ELF/error-handling-script-linux.test' FAILED ********************
Exit Code: 127

Command Output (stdout):
--

# RUN: at line 21
{ echo 'a_: ret'; echo 'bar: movl a(%rip), %eax' ; } | /usr/local/google/home/connieyzhu/llvm-project/build/bin/llvm-mc -filetype=obj -triple=x86_64 - -o /usr/local/google/home/connieyzhu/llvm-project/build/tools/lld/test/ELF/Output/error-handling-script-linux.test.tmp3.o
# executed command: '{' echo 'a_: ret'
# .---command stderr------------
# | '{': command not found
# `-----------------------------
# error: command failed with exit status: 127

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions