I've noticed some awk examples which use 1 instead of print to print $0 (eg. To conserve space, I normally use '1'. and on this site).
Is this a documented / safe practice, or is is it subject to breaking in some versions; past, present or future?
Here are some examples:
echo 'a-does-print-$0' | awk '"x"'
echo 'b-does-print-$0' | awk '$0'
echo 'c-does-print-$0' | awk '1'
echo 'd-does-print-$0' | awk '(1-2)'
echo 'd-does-print-$0' | awk '{$0="abc"}1'
echo 'nothing-prints' | awk '{$0="abc"}'
echo 'nothing-prints' | awk '$999'
echo 'nothing-prints' | awk '(1-1)'
echo 'nothing-prints' | awk '1-1'
echo 'nothing-prints' | awk '0'
echo 'nothing-prints' | awk 'unsetVar'
echo 'nothing-printw' | awk ''
echo 'crashes' | awk '-3.14159'
echo 'crashes' | awk '-2'
echo 'crashes' | awk '-1'