SPECS: josm.spec - why people never use 'EOF' instead?
Elan Ruusamäe
glen at pld-linux.org
Thu Apr 23 13:44:05 CEST 2009
On Thursday 23 April 2009 14:18:12 Jacek Konieczny wrote:
> As they do not remember exact syntax and would have to look it up? ;)
> As it looks uglier? As it needs more characters (two apostrophes instead
> of one backslash)?
because you can then embed the real script (update the spec with it), without
need to re-escape things (seen too many mistakes in this interpolation
not-escaping area).
heredoc quick howto:
1. <<EOF
text is interpolated
2. <<'EOF'
text is not interpolated
3. <<-EOF
text is interpolated, leading indent is removed
4. <<-'EOF'
text is not interpolated, leading indent is removed
NOTE: when leading indent is removed (#3 and #4), the closing EOF can be
indented itself too.
--
glen
More information about the pld-devel-en
mailing list