[FFmpeg-cvslog] r20397 - trunk/configure

Måns Rullgård mans
Thu Oct 29 12:46:57 CET 2009


Michael Kostylev <michael.kostylev at gmail.com> writes:

> 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.

Are you saying some idiotic shell applies an extra pass of quote
removal on arguments to "echo" but not other commands?  What happens
if you put some quote characters (single or double) in TEST_STRING?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list