@@ -87,10 +87,10 @@ func TestRunContinuity(t *testing.T) {
8787
8888func TestShellTypeDetection(t *testing.T) {
8989 shell := &PersistentShell{}
90−
90+
9191 tests := []struct {
92− command string
93− expected ShellType
92+ command string
93+ expected ShellType
9494 windowsOnly bool
9595 }{
9696 // Windows-specific commands
@@ -100,14 +100,14 @@ func TestShellTypeDetection(t *testing.T) {
100100 {"del file.txt", ShellTypeCmd, true},
101101 {"md newdir", ShellTypeCmd, true},
102102 {"tasklist", ShellTypeCmd, true},
103−
103+
104104 // PowerShell commands
105105 {"Get-Process", ShellTypePowerShell, true},
106106 {"Get-ChildItem", ShellTypePowerShell, true},
107107 {"Set-Location C:\\", ShellTypePowerShell, true},
108108 {"Get-Content file.txt | Where-Object {$_ -match 'pattern'}", ShellTypePowerShell, true},
109109 {"$files = Get-ChildItem", ShellTypePowerShell, true},
110−
110+
111111 // Unix/cross-platform commands
112112 {"ls -la", ShellTypePOSIX, false},
113113 {"cat file.txt", ShellTypePOSIX, false},
@@ -116,11 +116,11 @@ func TestShellTypeDetection(t *testing.T) {
116116 {"git status", ShellTypePOSIX, false},
117117 {"go build", ShellTypePOSIX, false},
118118 }
119−
119+
120120 for _, test := range tests {
121121 t.Run(test.command, func(t *testing.T) {
122122 result := shell.determineShellType(test.command)
123−
123+
124124 if test.windowsOnly && runtime.GOOS != "windows" {
125125 // On non-Windows systems, everything should use POSIX
126126 if result != ShellTypePOSIX {
@@ -140,12 +140,12 @@ func TestWindowsCDHandling(t *testing.T) {
140140 if runtime.GOOS != "windows" {
141141 t.Skip("Windows CD handling test only runs on Windows")
142142 }
143−
143+
144144 shell := &PersistentShell{
145145 cwd: "C:\\Users",
146146 env: []string{},
147147 }
148−
148+
149149 tests := []struct {
150150 command string
151151 expectedCwd string
@@ -156,12 +156,12 @@ func TestWindowsCDHandling(t *testing.T) {
156156 {"cd C:\\Windows", "C:\\Windows", false},
157157 {"cd", "", true}, // Missing argument
158158 }
159−
159+
160160 for _, test := range tests {
161161 t.Run(test.command, func(t *testing.T) {
162162 originalCwd := shell.cwd
163163 stdout, stderr, err := shell.handleWindowsCD(test.command)
164−
164+
165165 if test.shouldError {
166166 if err == nil {
167167 t.Errorf("Command %q should have failed", test.command)
@@ -174,7 +174,7 @@ func TestWindowsCDHandling(t *testing.T) {
174174 t.Errorf("Command %q: expected cwd %q, got %q", test.command, test.expectedCwd, shell.cwd)
175175 }
176176 }
177−
177+
178178 // Reset for next test
179179 shell.cwd = originalCwd
180180 _ = stdout
@@ -187,17 +187,17 @@ func TestCrossPlatformExecution(t *testing.T) {
187187 shell := newPersistentShell(".")
188188 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
189189 defer cancel()
190−
190+
191191 // Test a simple command that should work on all platforms
192192 stdout, stderr, err := shell.Exec(ctx, "echo hello")
193193 if err != nil {
194194 t.Fatalf("Echo command failed: %v, stderr: %s", err, stderr)
195195 }
196−
196+
197197 if stdout == "" {
198198 t.Error("Echo command produced no output")
199199 }
200−
200+
201201 // The output should contain "hello" regardless of platform
202202 if !strings.Contains(strings.ToLower(stdout), "hello") {
203203 t.Errorf("Echo output should contain 'hello', got: %q", stdout)
@@ -208,17 +208,17 @@ func TestWindowsNativeCommands(t *testing.T) {
208208 if runtime.GOOS != "windows" {
209209 t.Skip("Windows native command test only runs on Windows")
210210 }
211−
211+
212212 shell := newPersistentShell(".")
213213 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
214214 defer cancel()
215−
215+
216216 // Test Windows dir command
217217 stdout, stderr, err := shell.Exec(ctx, "dir")
218218 if err != nil {
219219 t.Fatalf("Dir command failed: %v, stderr: %s", err, stderr)
220220 }
221−
221+
222222 if stdout == "" {
223223 t.Error("Dir command produced no output")
224224 }