[GRASS5] Re: [GRASS-COMMIT-CVS] CVS update: grass/src/general/init

Justin Hickey jhickey at hpcc.nectec.or.th
Fri Oct 13 02:54:29 EDT 2000


Hello Huidae

> Date:   Thursday October 12, 2000 @ 12:41
> Author: cho
> 
> Update of /grassrepository/grass/src/general/init
> In directory intevation.de:/tmp/cvs-serv11603
> 
> Modified Files:
>         Gmakefile init.head
> Log Message:
> patch for non-interactive startup
> 
> affected env variables:
> 
>         GISDBASE
>         LOCATION_NAME
>         MAPSET
>         LOCATION
> 
> basically grass5 takes it's argument which is LOCATION.
> 
> 1. without any env variable
> 
>         grass5 -                               interactive startup
>         grass5                                 interactive startup
>         grass5 GISDBASE/LOCATION_NAME/MAPSET   non-interactive startup
> 
> 2. with GISDBASE env variable
> 
>         grass5 -                               interactive startup
>         grass5                                 interactive startup
>         grass5 LOCATION_NAME/MAPSET            non-interactive startup
> 
>         override GISDBASE like this:
>         grass5 GISDBASE/LOCATION_NAME/MAPSET   non-interactive startup
> 
> 3. with GISDBASE and LOCATION_NAME env variables
> 
>         grass5 -                               interactive startup
>         grass5                                 interactive startup
>         grass5 MAPSET                          non-interactive startup
> 
>         override GISDBASE and LOCATION_NAME like this:
>         grass5 LOCATION_NAME/MAPSET            non-interactive startup
>         grass5 GISDBASE/LOCATION_NAME/MAPSET   non-interactive startup
> 
> 4. with GISDBASE, LOCATION_NAME and MAPSET env variables
> 
>         grass5 -                               interactive startup
>         grass5                                 non-interactive startup
> 
>         override GISDBASE, LOCATION_NAME and MAPSET like this:
>         grass5 MAPSET                          non-interactive startup
>         grass5 LOCATION_NAME/MAPSET            non-interactive startup
>         grass5 GISDBASE/LOCATION_NAME/MAPSET   non-interactive startup
> 
> 5. with LOCATION env variable: override GISDBASE, LOCATION_NAME,
> MAPSET vars
> 
>         grass5 -                               interactive startup
>         grass5                                 non-interactive startup
> 
>         override GISDBASE, LOCATION_NAME and MAPSET like this:
>         grass5 MAPSET                          non-interactive startup
>         grass5 LOCATION_NAME/MAPSET            non-interactive startup
>         grass5 GISDBASE/LOCATION_NAME/MAPSET   non-interactive startup

May I make a suggestion? Perhaps "grass5" should be used for interactive
startup for all cases. That way, the behaviour is consistant for all
users when they start grass with "grass5". Then "grass5 -" could be used
for non-interactive where appropriate. Basically, you would switch
"grass5" and "grass5 -" in your 5 cases above.

By the way, could you please post proposals for new features to the
developers list before you commit them to the CVS tree? This not only
gives the other developers a chance to comment on your new feature, but
can save you time as well - like yesterday when you found out your new
feature was duplication.

Just some suggestions.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list