[Ffmpeg-devel] bash substitutions
matthieu castet
castet.matthieu
Sun Dec 18 14:16:26 CET 2005
M?ns Rullg?rd wrote:
> Rich Felker <dalias at aerifal.cx> writes:
>>>
>>>you could use on sh :
>>>${parameter%word}
>>>${parameter%%word}
>>>${parameter#word}
>>>${parameter##word}
>>>
>>>Something like ${lavu_version%%.[^.]*} should work
>>
>>Or ${lavc_version%.*}
>>However, is this portable, or is it yet another bashism??
According to POSIX it should be in sh :
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
>
>
> Solaris /bin/sh dislikes both.
>
But there are maybe no-POSIX compliant sh...
Matthieu
More information about the ffmpeg-devel
mailing list