Hm - This caused me to ask the question: Who keeps the capabilities in sync?
Is there a programmatic way we can have bash (or other shells) interrogate zpool and zfs to find out what it's capabilities are? I'm thinking something like having bash spawn a zfs command to see what options are available in that current zfs / zpool version... That way, you would never need to do anything to bash/zfs once it was done the first time... do it once, and as ZFS changes, the prompts change automatically... Or - is this old hat, and how we do it already? :) Nathan. On 10/10/08 05:06 PM, Boyd Adamson wrote: > Alex Peng <[EMAIL PROTECTED]> writes: >> Is it fun to have autocomplete in zpool or zfs command? >> >> For instance - >> >> "zfs cr 'Tab key' " will become "zfs create" >> "zfs clone 'Tab key' " will show me the available snapshots >> "zfs set 'Tab key' " will show me the available properties, then "zfs >> set com 'Tab key'" will become "zfs set compression=", another 'Tab key' >> here would show me "on/off/lzjb/gzip/gzip-[1-9]" >> ...... >> >> >> Looks like a good RFE. > > This would be entirely under the control of your shell. The zfs and > zpool commands have no control until after you press enter on the > command line. > > Both bash and zsh have programmable completion that could be used to add > this (and I'd like to see it for these and other solaris specific > commands). > > I'm sure ksh93 has something similar. > > Boyd > _______________________________________________ > zfs-discuss mailing list > zfs-discuss@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss -- ////////////////////////////////////////////////////////////////// // Nathan Kroenert [EMAIL PROTECTED] // // Senior Systems Engineer Phone: +61 3 9869 6255 // // Global Systems Engineering Fax: +61 3 9869 6288 // // Level 7, 476 St. Kilda Road // // Melbourne 3004 Victoria Australia // ////////////////////////////////////////////////////////////////// _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss