Is there a difference between putting container commands within double quotes v . . .

Ravi Shekhar Sinha:
Is there a difference between putting container commands within double quotes vs without it?

Tej_Singh_Rana:
Hello, @Ravi Shekhar Sinha
Can you please provide some examples? or elaborate more?

Ravi Shekhar Sinha:
So for example we can write as:

  • sleep
  • “4800”

or we can also write as:

  • “sleep”
  • “4800”

we can also write as:
[“sleep”, “4800”]

are all the ways equivalen? Or is there a difference?

Tej_Singh_Rana:
There is no difference.

Tarun Pable:
What about [“/bin/sh”, “-c”, “sleep 4000”]

Mohamed Ayman:
@Tarun Pable
It’s valid also and no difference.

Tarun Pable:
Thanks