a-Shell-commands icon indicating copy to clipboard operation
a-Shell-commands copied to clipboard

inline command- evaluate $( command )

Open macOneOone opened this issue 1 year ago • 2 comments

Hello @holzschu,

Is there any possibility to have inline command evaluate or $() and `` or it's a bug?

Cause I've the normal behavior when I write a shell script.

I was trying to change PS1 variable by executing > PS1=$(whoami) and the result is command not found.

Best regards.

macOneOone avatar Jun 18 '24 08:06 macOneOone

The default shell is more limited, but also with a low memory cost. If you need $() or backquoted commands, you have to use dash, which is a full implementation of sh. One key limitation of dash inside a-Shell is that you can only backquote commands or files, not functions.

holzschu avatar Jun 18 '24 08:06 holzschu

Thanks

macOneOone avatar Jun 18 '24 14:06 macOneOone