Moinak Ghosh wrote:
> Oh BTW, in some places grep -f is used which is specific functionality
> in XPG4 grep that is not available otherwise, so that dependency has
> to remain.
>
> Regards,
> Moinak.
>
> On Tue, Dec 16, 2008 at 3:33 PM, Moinak Ghosh <moinakg at belenix.org> wrote:
>   
>> On Tue, Dec 16, 2008 at 9:32 AM, sanjay nadkarni (Laptop)
>> <Sanjay.Nadkarni at sun.com> wrote:
>>     
>>> As some of you might now know, I have been struggling to run
>>> distro_constructor in a zone.  However I keep running into annoying
>>> little issues.
>>>
>>> First, "cp" was explictly called using /usr/gnu/bin/cp!!! Since I did
>>> not have the gnu-utils that failed.  Now I discover grep "/usr/xpg4/bin/grep
>>>
>>> Looking at the where these are called, it appears that "cp" and "grep"
>>> found in the standard path are just fine. Perhaps it might be better to
>>> set a known path at the start of the script and then invoke the commands.
>>>       
>>   
>> http://src.opensolaris.org/source/search?q=gnu%2Fbin%2Fcp&defs=&refs=&path=&hist=&project=%2Fcaiman
>>   Why is cp being used at all ?
>>
>>   In Python shutil.copyfile(src, targ) does the job just as well.
>> XPG4 grep is being used since
>>   /usr/bin/grep does not support '-q'. I'd say using grep ... >
>> /dev/null is more portable.
>>     
 xpg4/grep is being explictly called only in boot_rootconfigure.   The 
only option being used in this script is -v.   This is supported by 
/usr/bin/grep.

The options that you mention above are useful and are supported by  
/usr/bin/gnu/grep.  So if features of /usr/gnu/bin commands are 
required, then let's use all of them.

-Sanjay

>> Regards,
>> Moinak.
>> --
>> ================================
>> http://www.belenix.org/
>> http://moinakg.wordpress.com/
>>
>>     
>
>
>
>   


Reply via email to