Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.sysv386 Subject: Re: SCO Unix ksh (file name expansion using {}) question Message-ID: <1990Dec29.050118.4229@kithrup.COM> Date: 29 Dec 90 05:01:18 GMT References: <1476@beaudin.UUCP> Organization: Kithrup Enterprises, Ltd. Lines: 21 In article <1476@beaudin.UUCP> john@beaudin.UUCP (John Beaudin) writes: >Suppose that foo and bar are 2 files in the current directory. Why will > $ ls {foo,bar} >work, but > $ ls {foo} >fail? It looks like ksh does the same thing if the expansion "fails" as it does if any globbing fails: it puts, and puts (no pun intended) things back to normal. {foo} "fails" because there's only one thing in the list, just as "*asdf*" would "fail" in an empty directory. Just my $0.02; it could honestly be a bug. (I'm just justifying the current behaviour, something that every software maintainance engineer delights in 8-).) -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.