brsh 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wbt.es.js CHANGED
@@ -1206,7 +1206,7 @@ var u, d, f, p, m, h, g, _, v, y, b = e((() => {
1206
1206
  cwd: e && e.cwd || "/",
1207
1207
  ...t,
1208
1208
  subshell: !0
1209
- }), this.sandbox.context.source(this.context), this.sandbox.on("stdOut", (e) => {
1209
+ }), this.sandbox.context.source(this.context), Array.isArray(this.arguments) && (this.arguments.forEach((e, t) => this.sandbox.context.setVar(String(t + 1), e)), this.sandbox.context.setVar("#", String(this.arguments.length)), this.sandbox.context.setVar("@", this.arguments.join(" ")), this.sandbox.context.setVar("*", this.arguments.join(" "))), this.sandbox.on("stdOut", (e) => {
1210
1210
  this.stdOut = e, this.flush();
1211
1211
  }), this.sandbox.on("stdErr", (e) => {
1212
1212
  this.stdErr = e, this.flush();