Commit f1119cf
fix: expand tilde paths in remote SSH commands
sqlite3 doesn't expand ~ when the path is shell-quoted. Added
_quote_remote_path() helper that converts ~/... to "$HOME/..."
for remote execution, allowing both shell expansion and safe quoting.
Applied to all SSH commands in session-sync: _remote_sql(),
_stream_sql_to_target(), pull delta dump, and sync delta dump.
Fixes: "unable to open database ~/.config/studyctl/sessions.db"
when using session-sync push/pull with named hosts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 906f974 commit f1119cf
1 file changed
Lines changed: 23 additions & 3 deletions
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| 157 | + | |
150 | 158 | | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
155 | | - | |
| 163 | + | |
156 | 164 | | |
157 | 165 | | |
158 | 166 | | |
| |||
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
276 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
277 | 291 | | |
278 | 292 | | |
279 | 293 | | |
| |||
563 | 577 | | |
564 | 578 | | |
565 | 579 | | |
566 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
567 | 587 | | |
568 | 588 | | |
569 | 589 | | |
| |||
0 commit comments