Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Globbing and RC_EXPAND_PARAM



On May 3, 10:41am, Sven Wischnowsky wrote:
} Subject: Re: Globbing and RC_EXPAND_PARAM
}
} Not very nice either: *(/e:REPLY=-I\$REPLY)
} 
} Whoa! Dirty tricks ;-)

zagzig[86] echo *(/e:REPLY=-I\$REPLY)
zsh: missing end of string
zagzig[87] echo *(/e:REPLY=-I\$REPLY:)
-ICVS -ICompletion -IConfig -IDoc -IEtc -IFunctions -IMisc -ISrc -IStartupFiles
-ITest -IUtil

Pretty cool, but one can play hell with _expand this way ...

zagzig[91] echo Completion/*(/e:REPLY=-I\$REPLY:)
zagzig[91] echo -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY
-I$REPLY -I$REPLY -I$REPLY -I$REPLY
Completing all expansions
-I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY -I$REPLY
-I$REPLY -I$REPLY -I$REPLY
Completing expansions
-I$REPLY 
Completing original
Completion/*(/e:REPLY=-I\$REPLY:) 


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author