From 1003a18b85cffac4b9a92ee787fd8a9bdfca072d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 3 Oct 2025 00:15:29 +0700 Subject: all: add option "$noparse" for magic "#put" command The "$noparse" option allow copying file without reading and parsing the input file. --- testdata/play/awwanssh.test/put.aww | 2 ++ testdata/play/awwanssh.test/put_test.data | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'testdata/play') diff --git a/testdata/play/awwanssh.test/put.aww b/testdata/play/awwanssh.test/put.aww index e419a4f..0f6aa8c 100644 --- a/testdata/play/awwanssh.test/put.aww +++ b/testdata/play/awwanssh.test/put.aww @@ -16,3 +16,5 @@ #put!awwan:bin {{.ScriptDir}}/plain.txt sudoput_with_owner.txt #put!awwan:bin+602 {{.ScriptDir}}/plain.txt sudoput_with_owner_mode.txt + +#put:+666$noparse {{.ScriptDir}}/plain.txt put_noparse.txt diff --git a/testdata/play/awwanssh.test/put_test.data b/testdata/play/awwanssh.test/put_test.data index 61ac09c..0dccc05 100644 --- a/testdata/play/awwanssh.test/put_test.data +++ b/testdata/play/awwanssh.test/put_test.data @@ -4,6 +4,10 @@ Test input and output for "#put". The host name is awwanssh.test. +<<< plain_noparse.txt +The host name is {{.Val "host::name"}}. + + <<< WithoutPermission:error Play: Put: Put: permission denied -- cgit v1.3