On Sat, 25 Jun 2016, Walter Harms wrote: > On Fri, 24 Jun 2016, Walter Harms wrote: > >Try: > > >alias idt='grep -o -E "\\\$Id:[^$]+."' > > great. works for me ! > > you changed roles of ' and " , ok.
Yes. Do not expand anything when setting the alias. Expand when executing. > But why the \\\ double escape for $ but not in the [^$] ? When executing, the '\\' expands to '\' and '\$' to '$'. Thus, at execution time, you get '\$' which is what you want. Class '[^$]' is special. No escaping needed. Regexp:s. Cheers, -- Cristian _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
