From owner-freebsd-questions@freebsd.org Wed Feb 1 15:23:13 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF67ECCB37A for ; Wed, 1 Feb 2017 15:23:13 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from SNT004-OMC2S13.hotmail.com (snt004-omc2s13.hotmail.com [65.55.90.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D3CECC7 for ; Wed, 1 Feb 2017 15:23:13 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.90.73]) by SNT004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 1 Feb 2017 07:23:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fz/SO5kDWiwEL+XsJ/cyw+tLle1hSGP/mcFcgCnMZSY=; b=SkDvdB5Kl1I+Pd9d+ckQr8FS07pgTiLvY/aBNd8IQCcqsq9cYgEbZIpEYqK6CJYGYvYi3QhwQr4BGRZwumtL5OV3VcII30hWuh9w9diMql/HKoxZpcy9pjZkufNzGpLYqfvccM6gaspO5xnSTfUprEaJO+7i2fGkGQimePbiNTultWRd0ClunC6bPj/lTPmJcJlyZ2Byy7UgCyLfWmQ6ZBa1v47kQNPGSX7w7M7Rw4+u3h4qZju7upKEsb7NmOGrV+8AplVXVQvzEhrqF4SSBi5ZoBbu0rUnUn3NIsuuJO+82z/ZjnQysQvwexGpNBnYfjT8oAPQyfcUOMCMhOgvCQ== Received: from VE1EUR02FT025.eop-EUR02.prod.protection.outlook.com (10.152.12.52) by VE1EUR02HT110.eop-EUR02.prod.protection.outlook.com (10.152.13.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2; Wed, 1 Feb 2017 15:23:11 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com (10.152.12.56) by VE1EUR02FT025.mail.protection.outlook.com (10.152.12.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Wed, 1 Feb 2017 15:23:11 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) by VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) with mapi id 15.01.0860.026; Wed, 1 Feb 2017 15:23:11 +0000 From: Manish Jain To: Roger Pate , "freebsd-questions@freebsd.org" Subject: Re: Variable assignment in sh Thread-Topic: Variable assignment in sh Thread-Index: AQHSe9Ozx1G+Ill1IUyNhXhQraLRzKFSst8AgAAfsYCAAAr2gIAAAZEAgABBkQCAADGhAIAAClOAgADlSYCAAASZgA== Date: Wed, 1 Feb 2017 15:23:11 +0000 Message-ID: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: qxxy.com; dkim=none (message not signed) header.d=none;qxxy.com; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:035BB1D37F5FEA0F5871ED20EEE2BF9CC143839879E54A7B796EFE26CEE737E7; UpperCasedChecksum:8C82810C652E8DF4E00E7F67713C8EB88B67D3EBA6DFDA80ACF34E80836978F3; SizeAsReceived:8162; Count:36 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 36 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; VE1EUR02HT110; 7:Kkse/LEHlWymQZnBPJ28sfN/5IBACvoFmNa93/hVgamLjyhWXaJ+vYRpsZqjVvMSVRtsiPQn6LeSaMJ1uQghX2J1IX8UZ7XsgTT6sIiwIVNqFasdrrF+m04WvVmHl0Kokt4135r85leZGoFf8+WQ/nhg2nsRfyz/PjHM66jslBor7LITNuRo6Bb7/auzaS8J60U0J361WdBEYr1W28mvwmwANrBcLwgwtWptyIvbqtGca1d8cSZXxlbC3tye9i2or00pDsrmLZraGBTZkS8TN3l/uekw8Mdlh++npx3BTBE4mwa2H3Jsf26B8PdauzO1URPK5+/DCjRJNZOc9Nc7hDgGZt8Dk4fWR3rfWRhmz8BDHqc4ReR34DPEfzD2Eq3knyrxQWcATfWGgLDwcaW6dAFjoibOWkK4X4wJy6tut/TZAsCHkLLcpBfNHOFInDO28tgUGquxP1oEOPo7V+xrd8ElIYx/UzMsyXvlqjRgqjYzaME2Fe9pG6K0LPPZSlBIkL3xttL5FKis7ziN9XAtdQ== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT110; H:VI1PR02MB0974.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 4b92cc0c-5b07-4bfb-52a8-08d44ab63ab4 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(5061507293)(1603103124)(1601125047)(1701031034); SRVR:VE1EUR02HT110; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015029)(82015046); SRVR:VE1EUR02HT110; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR02HT110; x-forefront-prvs: 0205EDCD76 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2017 15:23:11.4927 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT110 X-OriginalArrivalTime: 01 Feb 2017 15:23:12.0644 (UTC) FILETIME=[1A15B440:01D27C9F] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 15:23:14 -0000 On 02/01/2017 08:36 PM, Roger Pate wrote: > On Tue, Jan 31, 2017 at 8:26 PM, Manish Jain > wrote: >> A point here for bash scripting. > > Most often, but not always, if I need something bash has and /bin/sh > lacks, it's time to write that script in a different language. :P Generally, FreeBSD community is averse to bash scritpting. But then sh=20 lacks array support, which is where bash and zsh do wonderfully well. Generally again, I am averse to most Linuxisms, but bash is simply way=20 too much convenience to ignore. Regards Manish Jain