Add bookmark finder scripts, fix a few incorrect uses of IFS and read

This commit is contained in:
2026-01-20 12:31:44 -06:00
parent 6ca8fb0c33
commit 6c154836f2
7 changed files with 87 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/sh
IFS="^" read -r bm_name bm_url bm_date_added bm_type bm_comments <<BM_LINE_BLOCK
$(printf "%s" "$@")
BM_LINE_BLOCK
bm_preview_format_block=$(cat <<'BM_PREVIEW_FORMAT_BLOCK'
name:
%s
url:
%s
date_added:
%s
type:
%s
comments:
%s
BM_PREVIEW_FORMAT_BLOCK)
printf "$bm_preview_format_block" \
"$bm_name" "$bm_url" "$bm_date_added" "$bm_type" "$bm_comments"