From owner-freebsd-ports@FreeBSD.ORG Thu May 31 19:21:16 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B095106564A; Thu, 31 May 2012 19:21:16 +0000 (UTC) (envelope-from scherfreebsd@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6208FC14; Thu, 31 May 2012 19:21:15 +0000 (UTC) Received: by laai10 with SMTP id i10so1285963laa.13 for ; Thu, 31 May 2012 12:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:subject:date:message-id:cc:to:mime-version :x-mailer; bh=5vCqkV2Ry177g//yjg32doi38QAdJ+rK+hNzFh4rKeM=; b=reIX12Kzx2O6E8tuY5MpZkNQg+SkAm8UDG95CqARnArAHP5yT7+oltn/NKgmKg92Qt d3XNenDQasqPrnIG5rtJrcMZYgiZJpvugVhtlab9xBw+riFQAthrlHFKQX6zDn0/O4y7 Uru/1B95xVuMPiFqArH1Tuth124trr+0QV9ywusT4oD6PoBT757vo+JBmF9SYzjj48fI EY3yAlDhjxY52WudAH48nWAf6mT+bl6o7SPzBB5Rv6z5LQPwsLCxlcy9d2MAtvY9pxOa eVdgaApxUJHYFZfMnYInSHXDwO88DOdFR/O6LM6tXsB1w4aljsRET2CeJwunVJfh175c 4oyw== Received: by 10.152.111.200 with SMTP id ik8mr21076359lab.15.1338492074203; Thu, 31 May 2012 12:21:14 -0700 (PDT) Received: from [77.66.153.242] ([77.66.153.242]) by mx.google.com with ESMTPS id hm7sm5679641lab.12.2012.05.31.12.21.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 May 2012 12:21:13 -0700 (PDT) Sender: Alexander Pronin From: Alexander Pronin Date: Thu, 31 May 2012 23:21:10 +0400 Message-Id: <4E946838-4F3B-421A-839E-05E1A01464AB@FreeBSD.org> To: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Marcus von Appen Subject: [ GSOC ] Differences in shell behaviour X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2012 19:21:16 -0000 Hello everyone! I am GSOC student at FreeBSD Project. So my GSOC Project is "Parallelization in the ports collection". You may checkout wiki page of this project: = http://wiki.freebsd.org/SummerOfCode2012/Parallelization_in_the_ports_coll= ection Is it suitable to write sh script for 9.0, that does not work in 8.3? To sum up, the scenario is as following: I need to spawn some processes in background to build port's = dependencies. Store their pids. Wait for a while or do some stuff. explore exit codes of spawned processes by their pids. The problem is: ### sh in 8.3 $ false & pid=3D$! $=20 [1] Done (1) false $ wait ${pid} wait: No such job: 4852 ----------------------- ### sh in releng9 $ false & pid=3D$! $=20 [1] Done(1) false $ wait ${pid} $ echo $? 1 $ I am currently working in releng9 environment, so the result suits my = needs. But, is it suitable to write sh script for 9.0, that does not work in = 8.3?