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

Darwin _defaults completion bug



Hi Motoi,
I think I've found a small bug with your _defaults completion (which I use all the time). If I type 'defaults read -g' then hit the Tab key, I see a list of possible completions which are quoted *and* escaped with a backslash. Here's what I mean:

% zsh -f
% autoload -U compinit
% compinit -C -d ~/.zcompdump_$ZSH_VERSION
% defaults read -g <TAB>
\"com.apple.AppleShareClientCore\"
\"com.apple.keyboard.fnState\"
\"com.apple.mouse.ignoreTrackpadIfMousePresent\"
\"com.apple.mouse.ignoreTypingFilter\"
\"com.apple.mouse.tapBehavior\"
\"com.apple.sound.beep.feedback\"
\"com.apple.trackpad.scaling\"
AppleAntiAliasingThreshold

...et cetera, et cetera. The command doesn't work in the escaped + quoted form. If just the quotes are used, the command works. I've looked at _defaults but haven't been able to figure out where the escapes are being inserted. If you get a chance, could you take a look?

Thanks,
Ryan



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