Skip to content

Commit c5dceda

Browse files
committed
Fix regressions
1 parent dae132a commit c5dceda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pglet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function pglet_send() {
128128
echo "$cmd" > "$conn_id"
129129

130130
# take result if command doesn't end with "f" (fire-and-forget)
131-
if [[ "$cmd" =~ \s*\w*f ]]; then
131+
if [[ "$cmd" =~ ^[[:space:]]*[A-Za-z]+f ]]; then
132132
return
133133
fi
134134

@@ -210,7 +210,7 @@ function pglet_wait_event() {
210210
local conn_id=$PGLET_CONNECTION_ID
211211
fi
212212

213-
read PGLET_EVENT_TARGET PGLET_EVENT_NAME PGLET_EVENT_DATA < "$conn_id.events"
213+
IFS=' ' read PGLET_EVENT_TARGET PGLET_EVENT_NAME PGLET_EVENT_DATA < "$conn_id.events"
214214
}
215215

216216
function pglet_dispatch_events() {

0 commit comments

Comments
 (0)