Date: Sat, 18 May 2013 11:03:05 -0500 From: Tim Daneliuk <tundra@tundraware.com> To: Quartz <quartz@sneakertech.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: <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>
next in thread | previous in thread | raw e-mail | index | archive | help
#foo works with sh On May 18, 2013 10:58:30 AM Quartz <quartz@sneakertech.com> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13eb861326a.27b7.0b331fcf0b21179f1640bd439e3f4a1e>