@poe-platform/safe-bash 0.1.750 → 0.1.752

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.
@@ -335,7 +335,12 @@ function getCompiledSyncPatternRegex(pattern) {
335
335
  contents = "^";
336
336
  cursor++;
337
337
  }
338
- if (cursor >= pattern.length || pattern.charCodeAt(cursor) === 93) {
338
+ // Bash treats a closing bracket at the start of a class as a member.
339
+ if (pattern.charCodeAt(cursor) === 93) {
340
+ contents += "\\]";
341
+ cursor++;
342
+ }
343
+ if (cursor >= pattern.length) {
339
344
  syncPatternRegexCache.set(pattern, null);
340
345
  return null;
341
346
  }
@@ -514,6 +514,8 @@ export declare class Runtime {
514
514
  private evalSyncNestedForWords;
515
515
  private isSyncEchoCallOk;
516
516
  private extractSyncReadHereStringSpec;
517
+ private canSyncLoopConditionalOperands;
518
+ private isSyncSubEchoCallOk;
517
519
  private isPureSyncSubIfOrCase;
518
520
  private canSyncLoopBody;
519
521
  private extractIntLoopStep;
@@ -542,6 +544,7 @@ export declare class Runtime {
542
544
  private _syncLoopAction;
543
545
  private flushSyncStdoutBatch;
544
546
  private writeSyncStdoutText;
547
+ private runSyncDiscardStep;
545
548
  private writeSyncRedirectStep;
546
549
  private runSyncArithForFallback;
547
550
  private _syncLoopFnCheckDepth;