How to execute in-line command inside PhpStorm Run/Debug

Viewed 18

I have a php program that requires an argument. This is a filename with one exception - the first letter needs to be in smaller case.

TestProgram.php -> testProgram

Instead of using terminal I wanted to be able to run this with Debug configuration. PhpStorm has this nice argument macro that does most of what I needed to achieve $FileNameWithoutAllExtensions$. Except of changing the first letter.

So I thought I would modify the arguments section to change the output.

"$(echo $FileNameWithoutAllExtensions$ | sed 's/.*/\l&/')"

However instead of executing the echo and sed commands, it just passes the whole as a string.

Is there a way force PhpStorm to execute it or another way for me to pass modified filename?

How I tried to run it

0 Answers
Related