Skip to content

shell: $$ should refer to the process pid #17396

Open

Description

@nektro

What version of Bun is running?

1.1.30

What platform is your computer?

Linux 6.6.57 x86_64 unknown

What steps can reproduce the bug?

$ bun --print 'await Bun.$`echo $$`'

What is the expected behavior?

sh-5.2$ echo $$
491569

What do you see instead?

$ bun --print 'await Bun.$`echo $$`'
$$
ShellOutput {
  stdout: Buffer(3) [ 36, 36, 10 ],
  stderr: Buffer(0) [  ],
  exitCode: 0,
  text: [Function: text],
  json: [Function: json],
  arrayBuffer: [Function: arrayBuffer],
  bytes: [Function: bytes],
  blob: [Function: blob],
}

Additional information

No response

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 isn't workingenhancementNew feature or requestshellSomething to do with Bun as a shell

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions