Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 2009 19:20:05 GMT
From:      Boris Samorodov <bsam@ipt.ru>
To:        freebsd-emulation@FreeBSD.org
Subject:   Re: ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage
Message-ID:  <200908101920.n7AJK5R3013610@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/135337; it has been noted by GNATS.

From: Boris Samorodov <bsam@ipt.ru>
To: Dmitry Marakasov <amdmi3@amdmi3.ru>
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 <http://gnu.org/licenses/gpl.html>;
 
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908101920.n7AJK5R3013610>