>How does this command work? Is it opening a child shell and
>sending the output the parent standard out?
> (cd /etc; ls -l)

open paren:  open a child shell with everything the same as the parent
    (meaning same current dir and outputs)
"cd" happens in child shell, parent shell of course remains same as it
was...
"ls" in child shell is for current directory which is /etc
    (and output is same as parent since did not ask to change any
outputs)
end paren:  close out child shell so back in parent in whatever dir you
were in

Tom


 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to