On Fri, 8 Aug 2014 09:37:21 -0500, Paul Gilmartin wrote: >On Fri, 8 Aug 2014 09:14:33 -0500, Bill Godfrey wrote: >> >> ... OMVS ... >> >To many assembler programmers, that's a four-letter word. > >>I use "printf" instead of "echo" because "echo" appends a newline which will >>also be converted to base64. >> >>printf "foo" | uuencode -m newfile >> >No. Rather: > > printf "%s" "foo" | uuencode -m newfile > >While your technique succeeds for your particular example, it's a bad habit to >form, >particularly with uncontrolled input data.
Agreed. I've run into that when a string contains % characters that I just want to echo. > > http://xkcd.com/327/ Funny. That cartoon is hanging on a wall in sight of my desk at work. > >I was unaware of the (new?) "-m" option of uuncode. Thanks for enlightening >me. > Bill ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
