Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.os.misc Subject: Re: Globbing Message-ID: Date: 22 Mar 91 16:29:12 GMT Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 30 As an excersize I am in the process of writing a shell for UNIX that only performs globbing when requested. It is not going to be anything of the complexity of the regular UNIX shells... sort of a baby shell for novices. So far the total length of the shell is 472 lines, and it already parses statements and executes them. No globbing is as yet implemented. + echo 'The only quoting character is single quotes' The only quoting character is single quotes + echo 'Unclosed quotes are automatically and silently closed Unclosed quotes are automatically and silently closed + echo 'You continue a line\ - by escaping it with a backslash' You continue a line by escaping it with a backslash + echo 'You quote a quote by doubling it''' You quote a quote by doubling it' And... + echo 'I''m planning on doing globbing like so: [*.c]' I'm planning on doing globbing like so: split.c getline.c bsh.c domagic.c Any suggestions? I was thinking of continuing lines if there were unclosed quotes, but that has proven a source of confusion on UNIX with the bourne shell. And, of course, any interest? -- Peter da Silva. `-_-' peter@ferranti.com +1 713 274 5180. 'U` "Have you hugged your wolf today?"