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

Bug#264241: Some corrections regardings statements in this bug



On Mon, Aug 16, 2004 at 10:35:21PM +0200, Florent Rougon wrote:
> Hi,
> 
> Adrian Bunk <bunk@fs.tum.de> wrote:
> 
> > On Mon, Aug 16, 2004 at 12:23:27PM +0200, Florent Rougon wrote:
> >>...
> >> +if [ x"$1" = "xremove" ] || [ x"$1" = "xupgrade" ]; then
> >> 
> >> (and I would even drop the x thingies 'cause I don't think they are of
> >> any use these days...)
> >
> > I don't know which shells have problems without them, but if a script is 
> > written to be executed by nearly every shell, I'd keep them.
> 
> But in this case, we are talking about maintainer scripts; they are
> written for Debian systems and I'd rather have the buggy shells fixed,
> than all Debian maintainer scripts plagued with ugly workarounds like
> this one, that make shell code harder to read.

That sounds reasonable.

But following this argumentation, shouldn't maintainers simply put a
#!/bin/bash at the top of their scripts instead of removing 
bash-specific features?

> Florent

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




Reply to: