# Escape newlines inside quoted strings.
/^[^'#]*'[^']*$/{
/^[^"]*'/{
:singlequote
s/$/\\/
n
/'/ ! b singlequote
}
}
/^[^"#]*"[^"]*$/{
/^[^']*"/{
:doublequote
s/$/\\/
n
/'/ ! b doublequote
}
}
Previous | Sh_2_csh.csh | Next
Copyright © 1988-2003 by
Hamilton Laboratories.
All rights reserved.