Re: [gentoo-user] to nest commands

2013-11-26 Thread Neil Bothwick
On Tue, 26 Nov 2013 19:12:40 +0400, Andrew Savchenko wrote: > > As I understand it, the $(...) syntax is the preferred way of nesting, > > as opposed to backticks. I think this may be due to backticks > > requiring some special escaping that the $(...) syntax does not > > require. I attempted a br

Re: [gentoo-user] to nest commands

2013-11-26 Thread Andrew Savchenko
On Tue, 26 Nov 2013 09:58:24 -0500 Randy Barlow wrote: > On Tue, 26 Nov 2013 11:52:10 +0100 > Hinnerk van Bruinehsen wrote: > > There are some other options of "nesting" as well. You can use > > backticks "`" or $(...) to run a command "inside" another. An example > > would be emerge `qlist -CI x1

Re: [gentoo-user] to nest commands

2013-11-26 Thread Randy Barlow
On Tue, 26 Nov 2013 11:52:10 +0100 Hinnerk van Bruinehsen wrote: > There are some other options of "nesting" as well. You can use > backticks "`" or $(...) to run a command "inside" another. An example > would be emerge `qlist -CI x11-drivers` (or the equivalent emerge > $(qlist -CI x11-drivers)

Re: [gentoo-user] to nest commands

2013-11-26 Thread Hinnerk van Bruinehsen
On Mon, Nov 25, 2013 at 11:45:39PM -0800, edwardu...@live.com wrote: > On Tue, 26 Nov 2013 01:16:45 +0200 > Alan McKinnon wrote: > > > You don't do it that way. I understand what you want to do, but your > > description makes no sense. > > > > How you do it is by running two commands on one line

Re: [gentoo-user] to nest commands

2013-11-25 Thread edwardu...@live.com
On Tue, 26 Nov 2013 01:16:45 +0200 Alan McKinnon wrote: > You don't do it that way. I understand what you want to do, but your > description makes no sense. > > How you do it is by running two commands on one line, one after the other. > > To copy a file "myfile.txt" to /tmp and also change it'

Re: [gentoo-user] to nest commands

2013-11-25 Thread Alan McKinnon
On 26/11/2013 08:59, edwardu...@live.com wrote: > Hello, > > My Bash skills are not that advanced, so > I am wondering if it is possible to nest one command inside in another > command, not in a script,but on the command line,for instance > to copy a file to a different destination while changin

[gentoo-user] to nest commands

2013-11-25 Thread edwardu...@live.com
Hello, My Bash skills are not that advanced, so I am wondering if it is possible to nest one command inside in another command, not in a script,but on the command line,for instance to copy a file to a different destination while changing permissons at the same time, all in one line. -- edward