rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* glomming and variable woerdness
@ 1992-06-03 21:35 Erik Quanstrom
  0 siblings, 0 replies; only message in thread
From: Erik Quanstrom @ 1992-06-03 21:35 UTC (permalink / raw)
  To: rc

When rc scans the line                                            

        echo $a*

the star is part of the variable name, so 'a*' is looked up and 
printed out, for example

        ; 'a*' = fu
        ; echo $a*
        ; fu

However, when rc scans the line

	echo $a ^ *

it finds (well, sometimes) a to be the empty string, concatinates that
with * and then globs that string. This string is just '*' so printing
out all the files in the directory is what rc should do.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1992-06-03 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-06-03 21:35 glomming and variable woerdness Erik Quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).