Hi guys,
I'm learning ksh, I'm trying to run a command using a subshell, but I got different results, I'm guessing the reason.
root@setPrompt[/home/za] X=$("ls -ltr")
ksh: ls -ltr: not found.
root@setPrompt[/home/za] X=$('ls -ltr')
ksh: ls -ltr: not found.
root@setPrompt[/home/za] X="$(ls -ltr)"
root@setPrompt[/home/za] echo $X
total 5256 -rw-
thanks