[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell script sniplets in /usr/bin?



Op ma, 31-01-2005 te 10:11 +0100, schreef Adrian von Bidder:
> On Saturday 29 January 2005 18.28, Frank Küster wrote:
> > Santiago Vila <sanvila@unex.es> schrieb:
> > > On Sat, 29 Jan 2005, sean finney wrote:
> > >> why not do something like this in
> > >> any script that uses gettext:
> > >>
> > >> #!/bin/sh
> > >>
> > >> PATH=${PATH}:/usr/share/gettext/scripts
> > >> . gettext.sh
> > >
> > > Because we already have /usr/bin for that and there is no need to
> > > change every script that uses gettext.
> >
> > You wouldn't need to change "every" script - you just need to move
> > gettext.sh to /usr/share/gettext/scripts and create /usr/bin/gettext.sh
> > with the content Sean suggested.
> 
> Which buys us what?
> 
> This new gettext.sh would still be a non-executable script snippet which is 
> not intended to be called by the user directly, as far as I can understand.

Well, then add  line like

echo gettext 'WARNING: This program uses the (deprecated) /usr/bin/gettext.sh interface. This is a bug' >&2

To that file in /usr/bin. It'll ensure a quick transition, I'm sure.

-- 
         EARTH
     smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
         WATER
 -- with thanks to fortune



Reply to: