Can somebody explain what the hell is happening with this as it's driving me insane. The first 3 are entirely expected, but the latter confuses the crap out of me.
[root@rudi.test test]# echo hello hello [root@rudi.test test]# echo echo hello echo hello [root@rudi.test test]# (echo echo hello) echo hello [root@rudi.test test]# $(echo echo hello) hello [root@rudi.test test]# $(echo echo echo hello) echo hello
Is $(echo built in to just put the command ran after it onto stdout? I don't see any other explanation for this behaviour whilst in a command substitution context ($(..)).
This post has been edited by RudiVisser: 10 October 2012 - 01:50 AM

New Topic/Question



MultiQuote



|