On 2012-06-09 03:17, Kern Sibbald wrote: > Interesting. > > Unfortunately, we cannot use changes to configure because it is > "compiled" > from autoconf/configure.in by the autoconf tools.
Understood. But > > I just checked the ./configure of the latest code that I built last > week > on 8.2 and it has the ECHO = 'printf %s\n' which works for me. > Perhaps the real problem may be something with your /bin/sh or > perhaps some alias you have in your environment ???? That's very odd. Let's see here. In my first test, no new line. In the second test, there is a new line. $ /bin/sh $ printf %s\n THINGS THINGSn$ printf "%s\n" THINGS THINGS $ Let's check around and see: $ which printf /usr/bin/printf $ ls -l /usr/bin/printf -r-xr-xr-x 1 root wheel 12088 Mar 30 18:03 /usr/bin/printf $ $ uname -a FreeBSD pg92.example.org 8.2-STABLE FreeBSD 8.2-STABLE #3: Fri Nov 18 12:07:46 UTC 2011 d...@kraken.example.org:/usr/obj/usr/src/sys/KRAKEN amd64 $ env CVS_RSH=ssh USER=dan SSH_CLIENT=10.0.0.1 11664 22 crt=24 MAIL=/var/mail/dan SHLVL=1 HOME=/home/dan SSH_TTY=/dev/pts/3 PAGER=more ENV=/home/dan/.shrc PR_FORM=mysendpr.template.bacula LOGNAME=dan _=THINGS BLOCKSIZE=K TERM=xterm PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/dan/bin SSH_AUTH_SOCK=/tmp/ssh-wHm9X44YcU/agent.48689 DOCROOT=/var/www/html SHELL=/bin/sh PWD=/usr/home/dan CVSROOT=/home/repositories/freebsddiary SSH_CONNECTION=10.0.0.1 11664 10.0.0.105 22 FTP_PASSIVE_MODE=YES EDITOR=joe > > Best regards, > Kern > > On 06/08/2012 11:20 PM, Dan Langille wrote: >> On Jun 8, 2012, at 5:15 PM, Bryan Harris wrote: >> >>> On Jun 8, 2012, at 2:05 PM, Dan Langille wrote: >>> >>>> On 2012-06-08 10:21, Kern Sibbald wrote: >>>>> On 06/08/2012 02:40 PM, Dan Langille wrote: >>>> I see this defined: >>>> >>>> ECHO = printf %s\n >>> I think he's saying that in the original form had single quotes, >>> like this: >>> >>>> ECHO='printf %s\n' >> >> Ahh, yes, well, I admit to typing that by hand, not copy paste. >> FYI, this is the diff with >> my patch present. >> >> $ git diff >> diff --git a/bacula/configure b/bacula/configure >> index 44c7ef5..55c5a82 100755 >> --- a/bacula/configure >> +++ b/bacula/configure >> @@ -6045,7 +6045,7 @@ if test "X`( print -r -- -n ) 2>/dev/null`" = >> X-n&& \ >> test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then >> ECHO='print -r --' >> elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then >> - ECHO='printf %s\n' >> + ECHO='echo' >> else >> # Use this function as a fallback that always works. >> func_fallback_echo () >> >> >> >>> Also it appears you tried two other forms which are slightly >>> different than the original. >>> >>> ECHO='printf "%s\n"' >>> ECHO='printf %s\\n' >> These were my attempts at trying to get things to work. They >> failed. >> >> -- Dan Langille - http://langille.org/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel