On 03/21/2015 02:08, John Little wrote:
Indeed, that's ksh syntax; with ash it accepts it but includes an extra $ 
character. The correct syntax with my ash is
CR='\r'
NL='\n'

In this case flagging the $ as an error is useful, with my ash at least.

In BSD Almquist shell, CR='\r' is literally backslash and r, and CR=$'\r' is carriage return char. This link suggests that this is the Bourne shell syntax: http://44acres.com/braindisc/?q=node/105 (search for $’string’ there ) The same syntax works in bash, but this isn't posix syntax. So why vim flags it then, if it is Bourne shell syntax?

Yuri

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui