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 alan.mckin...@gmail.com 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

Re: [gentoo-user] to nest commands

2013-11-26 Thread Randy Barlow
On Tue, 26 Nov 2013 11:52:10 +0100 Hinnerk van Bruinehsen h.v.bruineh...@fu-berlin.de 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

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 h.v.bruineh...@fu-berlin.de 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

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 brief

[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. --

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 changing

Re: [gentoo-user] to nest commands

2013-11-25 Thread edwardu...@live.com
On Tue, 26 Nov 2013 01:16:45 +0200 Alan McKinnon alan.mckin...@gmail.com 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