ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage

Boris Samorodov bsam at ipt.ru
Mon Aug 10 19:20:06 UTC 2009


The following reply was made to PR ports/135337; it has been noted by GNATS.

From: Boris Samorodov <bsam at ipt.ru>
To: Dmitry Marakasov <amdmi3 at amdmi3.ru>
Cc: bug-followup at 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 at 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


More information about the freebsd-emulation mailing list