"echo \"(\"
while read file; do
quoted=`echo \"$file\" | sed -e \"s/\\\"/\\\\\\\\\\\\\\\\\\\"/\"`
- echo -n \"(\\\"$quoted\\\"\"
- if %s \"$file\"; then echo -n \" t\"; else echo -n \" nil\"; fi
- if %s \"$file\"; then echo -n \" t\"; else echo -n \" nil\"; fi
- if %s \"$file\"; then echo \" t)\"; else echo \" nil)\"; fi
+ printf \"(%%b\" \"\\\"$quoted\\\"\"
+ if %s \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi
+ if %s \"$file\"; then printf \" %%b\" t; else printf \" %%b\" nil; fi
+ if %s \"$file\"; then printf \" %%b)\n\" t; else printf \" %%b)\n\" nil; fi
done
echo \")\""
"Script to check file attributes of a bundle of files.
existence, file readability, and file directory. Input shall be
read via here-document, otherwise the command could exceed
maximum length of command line.
-Format specifiers \"%s\" are replaced before the script is used.")
+Format specifiers \"%s\" are replaced before the script is used,
+percent characters need to be doubled.")
;; New handlers should be added here.
;;;###tramp-autoload