Update make.md

Output file contents to stdout
This commit is contained in:
hamzawinix 2024-04-10 17:28:32 +03:00 committed by GitHub
parent 4eca50ea16
commit c04b99e12b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,13 @@ functions:
code: |
LFILE=file_to_write
make -s --eval="\$(file >$LFILE,DATA)" .
file-read:
- description: Requires a newer GNU `make` version.
code: |
CMND='cat file_to_read'
make -s --eval=$'x:\n\t-'"$CMND"
suid:
- code: |
COMMAND='/bin/sh -p'