Skip to content

Commit 0d4f907

Browse files
committed
feat(phoenix): Implement parsing of sed scripts
Sed is now finally able to actually run scripts, instead of ignoring all input and running a hard-coded test script!
1 parent e047b0b commit 0d4f907

File tree

2 files changed

+532
-41
lines changed

2 files changed

+532
-41
lines changed

packages/phoenix/src/puter-shell/coreutils/sed/address.js

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export class AddressRange {
5656
this.leaveRangeNextLine = false;
5757
}
5858

59+
get addressCount() {
60+
return (this.start ? 1 : 0) + (this.end ? 1 : 0);
61+
}
62+
5963
updateMatchState(lineNumber, line) {
6064
// Only ranges have a state to update
6165
if (!(this.start && this.end)) {

0 commit comments

Comments
 (0)