Skip to main content
Use code formatting for command reproduction, remove unrelated tag
Source Link
AdminBee
  • 23.6k
  • 25
  • 56
  • 77

So doing $(cat /etc/passwd)

$(cat /etc/passwd)

results in "No such File or Directory"

and "$(whereis cat)"

"$(whereis cat)"

results in "command not found"

Why is command substitution not working in the expected manner?

So doing $(cat /etc/passwd) results in "No such File or Directory"

and "$(whereis cat)" results in "command not found"

Why is command substitution not working in the expected manner?

So doing

$(cat /etc/passwd)

results in "No such File or Directory"

and

"$(whereis cat)"

results in "command not found"

Why is command substitution not working in the expected manner?

Source Link

Why is command substitution resulting in 'command not found error'?

So doing $(cat /etc/passwd) results in "No such File or Directory"

and "$(whereis cat)" results in "command not found"

Why is command substitution not working in the expected manner?