[FFmpeg-cvslog] r20397 - trunk/configure
Michael Kostylev
michael.kostylev
Thu Oct 29 11:58:59 CET 2009
On Thu Oct 29 00:43:07 2009
Michael Kostylev wrote:
>>>>> config.mak generated with bash:
>>>>> CCDEP=$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d
>>>>>
>>>>> config.mak generated with POSIX sh:
>>>>> CCDEP=$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)
>>>>
>>>> Which shell did that?
>>>
>>> The latter? dash, mksh in POSIX mode, Solaris sh.
>>
>> I'm curious. Can you try to find a simple test demonstrating the
>> difference?
>
> TEST_STRING='\\'
> echo $TEST_STRING
> printf '%s\n' $TEST_STRING
echo(){
printf "%s\n" "$@"
}
seems to be portable enough.
Michael
More information about the ffmpeg-cvslog
mailing list