Re: 38

2010-08-31 Thread Vincent Lefevre
On 2010-08-28 20:54:42 +1000, Brian May wrote: > When the solution is easy I don't see why we don't just do it. > > br...@andean:~$ i="cat's meow.tar.gz" > br...@andean:~$ echo "`basename "$i" .tar.gz`" > cat's meow > > (yes, the nested quotes don't seem to matter) They matter if you have consec

Re: 38

2010-08-28 Thread Brian May
On 27 August 2010 18:20, Adam Borowski wrote: > On Fri, Aug 27, 2010 at 10:09:49AM +0200, posion bit wrote: >> > (/etc/mc/mc.menu) >> >          case "$i" in >> >            *.tar.gz)  D="`basename $i .tar.gz`";; >> >> In that case, name-spaced filenames should work, because the >> string is

Re: 38

2010-08-27 Thread Adam Borowski
On Fri, Aug 27, 2010 at 05:23:13PM -0700, Russ Allbery wrote: > Adam Borowski writes: > > On Fri, Aug 27, 2010 at 11:08:11AM -0700, Russ Allbery wrote: > > >> Could you please either start reporting (wishlist) bugs asking to make > >> these scripts more robust against strange administrative pract

Re: 38

2010-08-27 Thread Russ Allbery
Adam Borowski writes: > On Fri, Aug 27, 2010 at 11:08:11AM -0700, Russ Allbery wrote: >> Could you please either start reporting (wishlist) bugs asking to make >> these scripts more robust against strange administrative practices or >> get tired of all this a little bit faster? > While being rob

Re: 38

2010-08-27 Thread Adam Borowski
On Fri, Aug 27, 2010 at 11:08:11AM -0700, Russ Allbery wrote: > Could you please either start reporting (wishlist) bugs asking to make > these scripts more robust against strange administrative practices or get > tired of all this a little bit faster? While being robust against "/etc/rcS.d/S50foo

Re: 38

2010-08-27 Thread Faidon Liambotis
Russ Allbery wrote: > Could you please either start reporting (wishlist) bugs asking to make > these scripts more robust against strange administrative practices or get > tired of all this a little bit faster? A large thread in debian-devel > with no concrete actionable reports is basically useles

Re: 38

2010-08-27 Thread Steve Langasek
On Fri, Aug 27, 2010 at 10:36:52AM +0200, posion bit wrote: > On Fri, Aug 27, 2010 at 10:26 AM, Steve Langasek wrote: > > Given that he hasn't bothered to present a single definitively broken script > > in /etc but instead seems to think that his prowess with grep entitles him > > to leave this mo

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 8:08 PM, Russ Allbery wrote: > Could you please either start reporting (wishlist) bugs asking to make > these scripts more robust against strange administrative practices or get > tired of all this a little bit faster?  A large thread in debian-devel > with no concrete acti

Re: 38

2010-08-27 Thread Russ Allbery
posion bit writes: > I showed one case in /etc/profile > I've just fast looked and show another case in /etc/init.d/rc > I'm getting tired of all this Could you please either start reporting (wishlist) bugs asking to make these scripts more robust against strange administrative practices or get

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 4:36 PM, Norbert Preining wrote: > On Fr, 27 Aug 2010, posion bit wrote: >> http://mywiki.wooledge.org/BashPitfalls > > Thanks, nice reading. > > Best wishes I haven't write a line of that enlightened wiki :-) Just sharing information sources with best wishes to all debi

Re: 38

2010-08-27 Thread Norbert Preining
On Fr, 27 Aug 2010, posion bit wrote: > http://mywiki.wooledge.org/BashPitfalls Thanks, nice reading. Best wishes Norbert Norbert Preiningprein...@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 1:57 PM, Marco d'Itri wrote: > On Aug 27, Samuel Thibault wrote: > >> Not if I have a "/etc/rc2.d/K03my damn daemon" > True, but then you deserve all the pain you will receive. Hi again, Marco and all. I would love to invite to community to take a read to common document

Re: 38

2010-08-27 Thread Marco d'Itri
On Aug 27, Samuel Thibault wrote: > Not if I have a "/etc/rc2.d/K03my damn daemon" True, but then you deserve all the pain you will receive. -- ciao, Marco signature.asc Description: Digital signature

38 and some POSIX news about filenames [Was: Re: 38]

2010-08-27 Thread Giacomo A. Catenazzi
On 27.08.2010 12:29, posion bit wrote: On Fri, Aug 27, 2010 at 12:13 PM, Josselin Mouette wrote: Le vendredi 27 août 2010 à 11:57 +0200, Samuel Thibault a écrit : Not if I have a "/etc/rc2.d/K03my damn daemon" Which is again the debian rules and the LSB rules about naming the init.d scripts.

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 12:13 PM, Josselin Mouette wrote: > Le vendredi 27 août 2010 à 11:57 +0200, Samuel Thibault a écrit : >> > >Not if I have a "/etc/rc2.d/K03my damn daemon" >> > >> > Which is again the debian rules and the LSB rules about >> > naming the init.d scripts. >> >> Debian rules an

Re: 38

2010-08-27 Thread Josselin Mouette
Le vendredi 27 août 2010 à 11:57 +0200, Samuel Thibault a écrit : > > >Not if I have a "/etc/rc2.d/K03my damn daemon" > > > > Which is again the debian rules and the LSB rules about > > naming the init.d scripts. > > Debian rules and LSB won't prevent users (even root) from doing that. And if ro

Re: 38

2010-08-27 Thread Samuel Thibault
Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:36:11 +0200, a écrit : > On 27.08.2010 10:27, Samuel Thibault wrote: > >Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:21:06 +0200, a écrit : > >>On 27.08.2010 10:09, posion bit wrote: > >>>look one so simple in /etc/init.d/rc > >>> > >>>

Re: 38

2010-08-27 Thread Giacomo A. Catenazzi
On 27.08.2010 10:27, Samuel Thibault wrote: Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:21:06 +0200, a écrit : On 27.08.2010 10:09, posion bit wrote: look one so simple in /etc/init.d/rc for i in /etc/rc$runlevel.d/K$level* do

Re: 38

2010-08-27 Thread Giacomo A. Catenazzi
On 27.08.2010 10:34, posion bit wrote: On Fri, Aug 27, 2010 at 10:27 AM, Samuel Thibault wrote: Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:21:06 +0200, a écrit : On 27.08.2010 10:09, posion bit wrote: look one so simple in /etc/init.d/rc for i in /etc/rc$runlevel.d/

Re: 38

2010-08-27 Thread Stanislav Maslovski
On Fri, Aug 27, 2010 at 09:58:22AM +0200, Adam Borowski wrote: > On Fri, Aug 27, 2010 at 10:30:07AM +0400, Stanislav Maslovski wrote: > > On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: > > > There are 38 unquoted $i in /etc in i386 installing base+laptop+standar > > > > > > There are

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 10:26 AM, Steve Langasek wrote: > Given that he hasn't bothered to present a single definitively broken script > in /etc but instead seems to think that his prowess with grep entitles him > to leave this most basic proof as an exercise for the reader, I'm pretty > sure the

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 10:27 AM, Samuel Thibault wrote: > Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:21:06 +0200, a écrit : >> On 27.08.2010 10:09, posion bit wrote: >> >look one so simple in /etc/init.d/rc >> > >> >                         for i in /etc/rc$runlevel.d/K$level* >> >              

Re: 38

2010-08-27 Thread Samuel Thibault
Giacomo A. Catenazzi, le Fri 27 Aug 2010 10:21:06 +0200, a écrit : > On 27.08.2010 10:09, posion bit wrote: > >look one so simple in /etc/init.d/rc > > > > for i in /etc/rc$runlevel.d/K$level* > > do > > # Check if the

Re: 38

2010-08-27 Thread Steve Langasek
On Fri, Aug 27, 2010 at 09:58:22AM +0200, Adam Borowski wrote: > While many of these are false alarms (numbers, fixed names, ...), the > problem is real. Sometimes you even have a proper and improper usage on the > same or on subsequent lines: > (/etc/mc/mc.menu) > case "$i" in >

Re: 38

2010-08-27 Thread Giacomo A. Catenazzi
On 27.08.2010 10:09, posion bit wrote: On Fri, Aug 27, 2010 at 9:58 AM, Adam Borowski wrote: On Fri, Aug 27, 2010 at 10:30:07AM +0400, Stanislav Maslovski wrote: On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: There are 38 unquoted $i in /etc in i386 installing base+laptop+standar

Re: 38

2010-08-27 Thread Adam Borowski
On Fri, Aug 27, 2010 at 10:09:49AM +0200, posion bit wrote: > > (/etc/mc/mc.menu) > >          case "$i" in > >            *.tar.gz)  D="`basename $i .tar.gz`";; > > In that case, name-spaced filenames should work, because the > string is a _quoted_ multi-word string. i="cat's meow.tar.gz"

Re: 38

2010-08-27 Thread Samuel Thibault
posion bit, le Fri 27 Aug 2010 10:09:49 +0200, a écrit : > > (/etc/mc/mc.menu) > >          case "$i" in > >            *.tar.gz)  D="`basename $i .tar.gz`";; > > > In that case, name-spaced filenames should work, because the > string is a _quoted_ multi-word string. Not in the basename cal

Re: 38

2010-08-27 Thread Giacomo A. Catenazzi
On 27.08.2010 08:30, Stanislav Maslovski wrote: On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: I've just started my love history again with squeeze. There are 38 unquoted $i in /etc in i386 installing base+laptop+standar There are 172 "$i" (maching without spaces around) 38 of the

Re: 38

2010-08-27 Thread posion bit
On Fri, Aug 27, 2010 at 9:58 AM, Adam Borowski wrote: > On Fri, Aug 27, 2010 at 10:30:07AM +0400, Stanislav Maslovski wrote: >> On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: >> > There are 38 unquoted $i in /etc in i386 installing base+laptop+standar >> > >> > There are 172 "$i" (mac

Re: 38

2010-08-27 Thread Adam Borowski
On Fri, Aug 27, 2010 at 10:30:07AM +0400, Stanislav Maslovski wrote: > On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: > > There are 38 unquoted $i in /etc in i386 installing base+laptop+standar > > > > There are 172 "$i" (maching without spaces around) 38 of them matches > > whit spac

Re: 38

2010-08-26 Thread Stanislav Maslovski
On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote: > I've just started my love history again with squeeze. > > There are 38 unquoted $i in /etc in i386 installing base+laptop+standar > > There are 172 "$i" (maching without spaces around) 38 of them matches > whit spaces around (unquoted)