From owner-freebsd-questions@FreeBSD.ORG Sat May 18 16:03:33 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B92BF11F; Sat, 18 May 2013 16:03:33 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) by mx1.freebsd.org (Postfix) with ESMTP id 81478827; Sat, 18 May 2013 16:03:28 +0000 (UTC) Received: from [10.78.37.23] (mobile-166-147-101-236.mycingular.net [166.147.101.236]) (authenticated bits=0) by ozzie.tundraware.com (8.14.7/8.14.7) with ESMTP id r4IG34Ut077261 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 18 May 2013 11:03:07 -0500 (CDT) (envelope-from tundra@tundraware.com) From: Tim Daneliuk To: Quartz Date: Sat, 18 May 2013 11:03:05 -0500 Message-ID: <13eb861326a.27b7.0b331fcf0b21179f1640bd439e3f4a1e@tundraware.com> In-Reply-To: <5197A526.7020302@sneakertech.com> References: <5194F65F.6080503@a1poweruser.com> <5194FB0A.9090400@tundraware.com> <13CA24D6AB415D428143D44749F57D7201F4D41F@ltcfiswmsgmb26> <5197998E.6050200@sneakertech.com> <51979A8B.8080703@tundraware.com> <5197A526.7020302@sneakertech.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 AquaMail/1.2.4.0 (build: 2100294) Subject: Re: check variable content size in sh script MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ozzie.tundraware.com [75.145.138.73]); Sat, 18 May 2013 11:03:08 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: r4IG34Ut077261 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No Cc: Devin Teske , "Teske, Devin" , "" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2013 16:03:33 -0000 #foo works with sh On May 18, 2013 10:58:30 AM Quartz wrote: > > >> newfoo=${foo:0:51} > >> > > > > That works for bash, not sh. > > Ok granted, but I don't think that ${#foo} is straight sh either, so I > assumed "things bash/tcsh/ksh/whatever accept when running in sh emulation" > were ok. > > ______________________________________ > it has a certain smooth-brained appeal > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"