From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 10 19:20:05 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A407510656D1 for ; Mon, 10 Aug 2009 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9291C8FC37 for ; Mon, 10 Aug 2009 19:20:05 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7AJK5d7013611 for ; Mon, 10 Aug 2009 19:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7AJK5R3013610; Mon, 10 Aug 2009 19:20:05 GMT (envelope-from gnats) Date: Mon, 10 Aug 2009 19:20:05 GMT Message-Id: <200908101920.n7AJK5R3013610@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2009 19:20:06 -0000 The following reply was made to PR ports/135337; it has been noted by GNATS. From: Boris Samorodov To: Dmitry Marakasov Cc: bug-followup@FreeBSD.org Subject: Re: ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage Date: Mon, 10 Aug 2009 23:15:58 +0400 On Mon, 10 Aug 2009 21:36:11 +0400 Dmitry Marakasov wrote: > * Boris Samorodov (bsam@ipt.ru) wrote: > > Whithout chroot the script will run as native FreeBSD script > > and won't look for linux paths. > Yes. Why is that bad? It just doesn't help! ;-) Well, at least not always. So it can't be a solution, just a new workaround. ----- % bash --version GNU bash, version 4.0.24(0)-release (i386-portbld-freebsd8.0) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. % ls file.1 file.2 % cat /compat/linux/usr/bin/test-ls #!/usr/bin/env bash listing=`dir $1` echo $listing % LANG=C /compat/linux/usr/bin/test-ls /compat/linux/usr/bin/test-ls: line 3: dir: command not found % /compat/linux/bin/bash /compat/linux/usr/bin/test-ls file.1 file.2 ----- -- WBR, bsam