According to XCU 2.6.5, it's treated literally only when double quoted, e.g. "$var", otherwise quote removal should still occur on the variable's contents after any field splitting...
On Friday, April 27, 2018 Joerg Schilling <joerg.schill...@fokus.fraunhofer.de> wrote: Robert Elz <k...@munnari.oz.au> wrote: > Oh, one more thing about patterns - a question this time, though the > answer might end up suggesting more text that needs to be in > the standard. > > If I have > > var='a*"?"' > > and then I do > > echo $var > > what should the result be? Is this absolutely the same as > > echo a*"?" No, it isn't. The result of a shell macro expansion is quoted internally before quote removal is applied. For this reason echo $var will print a*"?", while the latter prints a*? Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'