Skip to content

bash process substitution works with 2.0.19, but not 3.1.6 #344

Description

@bisz

thanks for making the awesome q and making it free.

i use bash process substitution quite often (cutting the code of writing/reading files), and it works perfectly with q 2.0.19:

$ /Users/bisz/Downloads/q-x86_64-Darwin -v
q version 2.0.19
Python: 3.7.3 (default, Sep  9 2020, 19:20:35) // [Clang 7.3.0 (clang-703.0.31)]
Copyright (C) 2012-2020 Harel Ben-Attia (harelba@gmail.com, @harelba on twitter)
http://harelba.github.io/q/

$ echo $a
1

$ /Users/bisz/Downloads/q-x86_64-Darwin 'select * from '<(echo $a)
Warning: column count is one - did you provide the correct delimiter?
1

but q 3.1.6 seems ignoring the entire data:

$ q -v
q version 3.1.6
Python: 3.8.11 (default, Jul 24 2021, 22:28:00) // [Clang 12.0.1 ]
Copyright (C) 2012-2021 Harel Ben-Attia (harelba@gmail.com, @harelba on twitter)
http://harelba.github.io/q/

$ \q 'select * from '<(echo $a)
Warning - data is empty

$ echo $a
1

$ \q 'select * from '<(echo $a)
Warning - data is empty

is it a bug, a behavior change, or somethign that i am missing?

appreciate your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions