From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 25 Oct 2002 23:09:08 +0800 From: Sinom To: community@altlinux.ru Subject: Re: [Comm] =?KOI8-R?B?0MXSxc7B0NLB18zFzsnFINfZ18/EwSDXIMzPxw==?= Message-Id: <20021025230908.5aaf5f12.sinom@ktk.ru> In-Reply-To: References: <20021025130958.9BADC2EE5D@mail.off-club.com> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-alt-linux) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: > Читайте нижеследующий отрывок man bash до просветления. > > Note that the order of redirections is significant. For > example, the command > > ls > dirlist 2>&1 > > directs both standard output and standard error to the > file dirlist, while the command > > ls 2>&1 > dirlist > > directs only the standard output to file dirlist, because > the standard error was duplicated as standard output > before the standard output was redirected to dirlist. ----------------- ls > dirlist 2>&1 перенаправляет оба стандартный вывод и стандартный поток ошибок в файл "dirlist", тогда как команда ls 2>&1 > dirlist направляет только втандартный вывод в файл "dirlist", потому что стандартный поток ошибок был дублирован как стандартный вывод перед стандартным выводом был перенаправлен в "dirlist". ----------------- Перевести то я перевел, но понять не могу. :-( Пожалуйста, объясните ещё раз, почему эти комманды приводят к различным результатам.