On Fri, Aug 21, 2009 at 1:39 AM, Sriram Narayanan<sriramnrn at gmail.com> wrote:
>
> See this 
> :http://patches.ubuntu.com/b/bash/extracted/command-not-found-doc.dpatch
>

Details,
on debian/ubuntu, there is package called 'command-not-found' which
provides output text - "not installed. can be installed by
some_command" for programs not currently installed but available from
the repositiories. It uses database of package-list inside folder
/usr/share/command-not-found/programs.d/ in GNU db format. Attached
CommandNotFound.py which is whole logic of this functionality. The
script lies in folder /usr/share/pyshared/CommandNotFound. As
suggested, we can modify it to provide corresponding solaris command
when given linux command.

---
Yogesh Chavan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CommandNotFound.py
Type: text/x-python
Size: 6862 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/belenix-discuss/attachments/20090821/8abb6cdf/attachment.py>

Reply via email to