Menu

#1044 *.h template. #ifndef {command:...} issue

v1.23.1
closed-rejected
nobody
v1.23.1
5
2014-05-12
2014-05-11
No

I try to add a 'main.h' template.
I was try to use {command:...} for #ifndef, #define
My srings is:

#ifndef {command:tr ". " "&#95;" <<< "{filename}" | tr "[:lower:]" "[:upper:]"}
#define {command:tr ". " "&#95;" <<< "{filename}" | tr "[:lower:]" "[:upper:]"}
#endif /* {command:tr ". " "&#95;" <<< "{filename}" | tr "[:lower:]" "[:upper:]"} */

When i try to create new file from this template geany replace this {command:...} to nothing.

Discussion

  • Lex Trotman

    Lex Trotman - 2014-05-12
    • status: open --> closed-rejected
     
  • Lex Trotman

    Lex Trotman - 2014-05-12

    The command is not run in a shell, so <<< and | will not work. Use /bin/sh -c to run commands in a shell.

     

Log in to post a comment.