[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
here strings
John (Most modern computers would break if you stood on them) Mackin writes:
Hands off here strings, you unprincipled boors! Real Example time...:
for (f in *) mv $f `{tr A-Z a-z <<<$f}
As opposed to
for (f in *) mv $f `{echo $f | tr A-Z a-z}
?
I don't think I quite understand the point of here strings. Actually,
I was a little surprised to discover that there was a seperate
primitive for here documents. I assume this is to preserve the here
document's distinct quoting semantics? Would it make sense to modify
the parser to emit (semantics-preserving) echo commands in order to
eliminate $&here?
OK,
John.
Ok by me.... :-)
- References:
- here strings
- From: John (Most modern computers would break if you stood on them) Mackin <john@ civil.su.oz.au>