thefeduke wrote:So, BEL seems to be an example of an accepted shorthand from these tables in this world of what you don't see is what you get.
Yes, and no.
If writing in a (non source code) text, or in a source code comment, then BEL is a valid (and one of the well known) name for this character.
But in source code (no comment) it is not valid:
You have to add the information, that this should be interpreted as the bell character via additional text (or comment) like 'where BEL is the bell character 0x07', or 'let "BEL" be the BEL', ....
If there is no such information, then BEL is just the sequence of characters 'B', 'E', 'L'.
So you could also use "echo ^G", but you have to add the information, that "^G" is the BEL (bell character, 0x07, ...).
If there is no such information, then "^G" is just a sequence of the characters '^', 'G'.
Information could also be well known in different contexts, so if typing ^G into the console window of cmd.exe, then it might be the bell character;
see my second post, why i've assumed, that this is not the case (this time, so i've assumed '^'; 'G').
It may sound like i am very particular about this, but here a new behaviour/feature is addressed here.
One had to guess which one of these:
- new cmd.exe behavior interpreting "^G" as BEL
- treat shortcut calls of bat files in a different way, then calling bat from within command line context,
- playing ping in another way
- ...
In addition dosnovice understood that one have guessed wrong and added the missing detail,
so i think this my sight is not too unusual.
Thanks, it sounds interesting, so i'll test it, too.
penpen