Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Why shellParse two '<' of 'cat > tmp.txt << a' ? #31

Closed

Description

@seepine

Like this

const parsed = shellParse("cat > tmp.txt << a")
console.log(parsed)

The result

[ 
  "cat", 
  {
    op: ">",
  }, 
  "tmp.txt", 
  {
    op: "<",
  }, 
  {
    op: "<",
  }, 
  "a" 
]

Activity

  1. seepine commented on Sep 13, 2026

    @seepine
    Author

    It should be like this?

    [ 
      "cat", 
      {
        op: ">",
      }, 
      "tmp.txt", 
      {
        op: "<<",
      }, 
      "a" 
    ]
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions