Dear diary, on Mon, May 30, 2005 at 01:43:26AM CEST, I got a letter where Mark Allen <mrallen1@yahoo.com> told me that... > --- Petr Baudis <pasky@ucw.cz> wrote: > > Dear diary, on Mon, May 30, 2005 at 01:00:10AM CEST, I got a letter > > where Mark Allen <mrallen1@yahoo.com> told me that... > > > - pdate="$(showdate $date)" > > > + pdate="$(date -u -r $date)" > > > > Hmm, coudlnt' showdate be fixed instead then? And $date is not a file so > > -r $date makes no sense to me - what am I missing? > > There is no showdate(1) command on Darwin. On Darwin, the date(1) command flags are There's probably no showdate command at all. This is internal function defined in cg-Xlib. ;-) > -u (show UTC) > -r seconds > > So `date -u -r $date` gives output like "Sun May 29 12:07:55 GMT 2005" instead of > 1117336545 GNU date: -r, --reference=FILE display the last modification time of FILE > > > - echo; sed -re ' > > > - / > > *Signed-off-by:.*/Is//'$colsignoff'&'$coldefault'/ > > > - / > > *Acked-by:.*/Is//'$colsignoff'&'$coldefault'/ > > > - s/./ &/ > > > - ' > > > + echo; sed -e "/ *Signed-off-by:.*/s/ > > *Signed-off-by:.*/$colsignoff&$coldefault/" -e"/ > > > +*Acked-by:.*/s/ *Acked-by:.*/$colsignoff&$coldefault/" -e "s/./ &/" > > > + > > > > Is it necessary to take away the newlines? What is the real problem, > > actually? Just the I flag? > > Is it strictly necessary to take away the newlines? I don't know. To be honest, I didn't > experiment too much with alternate implementations. But the I flag in the sed script, > yes that is not understood by non-GNU sed. And the "-r" to sed itself is also > problematic. I think we don't really need -r anyway. Could you please try with the 'i' flag instead of 'I'? (The manpage is somewhat unclear on the difference and portability.) Also, could you try if it works with the newlines? -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Mon May 30 09:49:25 2005
This archive was generated by hypermail 2.1.8 : 2005-05-30 09:49:25 EST