From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 5 Oct 2009 15:31:19 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <20091005192428.GA24445@nipl.net> References: <20091005192428.GA24445@nipl.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] mishandling empty lists - let's fix it Topicbox-Message-UUID: 7f3c9698-ead5-11e9-9d60-3106f5b1d025 > For interactive use, an environment variable WARNIFEMPTY or something could > request warnings (or ERRORIFEMPTY for errors) from the shell if a glob expands > to nothing; or from commands if a command is run with no files to operate on. > > Or perhaps we could have a different globber that does the right thing, > such as `{glob *} - that would be okay for scripts, and the status quo is > tolerable for interactive use. i'm pretty sure that modal stuff like this would be worse than the status quo. > Maybe the regular globbing can't be fixed without breaking stuff - but I don't > know of any program that does depend on this bogus misfeature, now who's overstating. :-) i highly suggest you implement your suggestions. i look forward to seeing a paper or wip at iwp9 in 2010. - erik