From 2696bc3cdef8c53aac7fcbc92fe5e84db7336919 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 4 Jun 2018 20:00:09 +0200 Subject: [PATCH] Fix make compatibility issues --- _gtfobins/make.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/_gtfobins/make.md b/_gtfobins/make.md index 0987aa1..ec86fc7 100644 --- a/_gtfobins/make.md +++ b/_gtfobins/make.md @@ -1,18 +1,8 @@ --- description: | All these examples only work with GNU `make` due to the lack of support of the - `--eval` flag. The same can be achieved by using a proper `Makefile` of by - passing the content via stdin, that is: - - ``` - make -s --eval= - ``` - - becomes: - - ``` - make -s -f <(echo ) - ``` + `--eval` flag. The same can be achieved by using a proper `Makefile` or by + passing the content via stdin using `-f -`. functions: execute-interactive: - code: | @@ -27,7 +17,8 @@ functions: COMMAND='/bin/sh -p' ./make -s --eval=$'x:\n\t-'"$COMMAND" file-write: - - code: | + - description: Requires a newer GNU `make` version. + code: | LFILE=file_to_write make -s --eval="\$(file >$LFILE,data)" . ---