diff options
| author | iamcheeseman <[hidden email]> | 2026-03-01 12:41:17 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-03-01 12:41:17 -0500 |
| commit | f3696d311331e86a72c5cae2e42e66ebc51dcd6a (patch) | |
| tree | b4e74c23fd64f2ecf6481c7f23c8607d268afda8 | |
| parent | a22baf4ba2ab78dfe0c5bbd74c9f6fef5aa35f5d (diff) | |
Allow spaces in tsarc arguments
| -rw-r--r-- | src/pipe.c | 4 | ||||
| -rwxr-xr-x | tsarc | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -38,7 +38,9 @@ void await_change(void) { break; } - if (isspace(chr)) { + // octal 201 is an unused ascii character, so it's safe to use as a + // delimiter + if (chr == '\201') { if (chr_on == 0) { i++; continue; @@ -1,2 +1,3 @@ #! /bin/sh -echo "$*" > /tmp/tsarc.pipe +printf "%s\201" "$@" > /tmp/tsarc.pipe + |
