expansion

C99 Macro to build a quoted string literal after evaluation

I'm developing an embedded application in C99, and the project contains some integer constants defined like: #define LEVEL1 0x0000 #define LEVEL2 (LEVEL1 + 1) It has since become useful to keep track of these values for logging purposes, so I would like to use a macro to create a string literal from the evaluated versions of t...

Globbing/pathname expansion with colon as separator

How can I convert a string containing glob characters such as /var/lib/gems/*/bin into a colon-separated string of filenames (i.e. PATH compatible) matching the pattern? i.e. echo /var/lib/gems/*/bin will return /var/lib/gems/1.8/bin /var/lib/gems/1.9.1/bin I want /var/lib/gems/1.8/bin:/var/lib/gems/1.9.1/bin instead. The obv...

dynamic expansion in minibuffer no longer works when upgrading from Emacs 21.2

Continuing my process of migrating the latest & greatest Emacs 23.2, I hit another unpleasant surprise: dynamic expansion in minibuffer no longer works! By "dynamic expansion in the minibuffer" I mean the feature that lets you blindly hit the spacebar to complete filenames, variables, etc. I also invoked 'Emacs -Q' (to rule out any .em...

How do I enable a "Bicycle AND Boy" search in Solr?

I have solr up and running but I cannot get the results when I search "Bicycle AND Boy", works fine for "Bicycle Boy". What are the steps to enable such searches? ...

Fileset/patternset's refid attribute isn't expanded. How would you write a target that operates on an arbitrary set of files?

I have a set of targets that each do essentially the same thing except each contains a specific patternset on which to perform its tasks. I want to collapse these targets into a single "reusable" target that instead takes a set of files "as a parameter". For example, this <target name="echo1"> <foreach item="File" property="fn"> ...

how to avoid shell expansion when running Java app in eclipse

I am running into a peculiar behavior of the eclipse run configuration, and it appears to be a Windows-only problem. Suppose I have a Java app that prints out the command line arguments, like the following: public class WildCard { public static void main(String[] args) { for (String arg: args) { System.out.printl...

Gnuwin32 find.exe expands wildcard before performing search

Hello, I am using Gnuwin32 binaries on a Windows environment. When I want to find files of a certain type, let's say PDF, I usually run: find . -iname '*.pdf' -print This works perfectly on any UNIX system. find.exe . -iname "*.pdf" -print But under Windows, having replaced single quotes with double-quotes, it only works when there...