Charles E. Campbell, Jr. wrote:
> Pádraig Brady wrote:
> 
>> Currently for /bin/sh scripts, $(command) and $((1+1))
>> are marked as errors. These constructs are POSIX compliant
>> and supported by dash and bash at least.
>>
>> I contend that erroneously warning users away from these valid
>> constructs is much worse than not flagging them as errors
>> on the dwindling non POSIX compliant shells.
>>  
>>
> Read   :help ft-sh-syntax  , in particular lines 2419-2435 .   FYI -- 
> bash is not "dwindling".

You misunderstand I think. Obviously bash is not dwindling :)
$() is OK for bash, dash, ash, ...
It's only not OK for old Borne shells.

Therefore I think we should not flag this POSIX syntax
as an error by default for all /bin/sh scripts.

thanks,
Pádraig.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui