Commit fe2c4ce
Eric Bower
·
2026-03-04 19:53:14 -0500 EST
parent 4d398e8
chore: remove comment about old strat
1 files changed,
+0,
-3
+0,
-3
| ... | ... | @@ -984,9 +984,6 @@ fn shellQuote(alloc: std.mem.Allocator, arg: []const u8) ![]u8 { | |
| 984 | 984 | // Always use single quotes (like Python's shlex.quote). Inside single | |
| 985 | 985 | // quotes nothing is special except ' itself, which we handle with the | |
| 986 | 986 | // '\'' trick (end quote, escaped literal quote, reopen quote). | |
| 987 | - | // | |
| 988 | - | // The previous double-quote strategy broke in interactive bash because | |
| 989 | - | // \! does not suppress history expansion inside double quotes. | |
| 990 | 987 | var len: usize = 2; | |
| 991 | 988 | for (arg) |ch| { | |
| 992 | 989 | len += if (ch == '\'') 4 else 1; |