PREV INDEX NEXT

Author: Unknown
Subject: VARCHR
Date: Saturday, 26 Sep 2020, 13:45:31

Are the characters in VARCHR defined in parsely.h the only characters that may appear in variable names? And if so, could you explain these outputs?

(1)$ a#b
CMD (Depth = 0):  SIMPLE,  argv[0] = a#b

(2)$ a*b
CMD (Depth = 0):  SIMPLE,  argv[0] = a*b

(3)$ a\\b
CMD (Depth = 0):  SIMPLE,  argv[0] = a\b

(4)$ a#b\
CMD (Depth = 0):  SIMPLE,  argv[0] = a#b\

Do "#" only start comments when there is a space before it? When do we treat \ as a character as opposed to the start of an escape character?
PREV INDEX NEXT