Date: Sat, 18 May 2013 11:58:30 -0400 From: Quartz <quartz@sneakertech.com> To: Tim Daneliuk <tundra@tundraware.com> Cc: Devin Teske <dteske@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>, "<freebsd-questions@freebsd.org>" <freebsd-questions@freebsd.org> Subject: Re: check variable content size in sh script Message-ID: <5197A526.7020302@sneakertech.com> In-Reply-To: <51979A8B.8080703@tundraware.com> References: <5194F65F.6080503@a1poweruser.com> <5194FB0A.9090400@tundraware.com> <13CA24D6AB415D428143D44749F57D7201F4D41F@ltcfiswmsgmb26> <5197998E.6050200@sneakertech.com> <51979A8B.8080703@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5197A526.7020302>