38
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). Some are iteration numbers, some are directory, files, etc... I've not time neither humor, to fill such bugs or not bugs depending on the situation. That has been my first command after login: grep -R ' $i ' /etc/ | grep -viE '(binary|no such)' Just in case that some good person as time and humor (what I lack today) to review it and file the bug if may be convenient. Greetings Iñigo -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinqmymk5uzdyxuz_q8cama3agxbuzicwmjk8...@mail.gmail.com
Re: 38
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" (maching without spaces around) 38 of them matches >> > whit spaces around (unquoted). >> > >> > Some are iteration numbers, some are directory, files, etc... > >> > >> > grep -R ' $i ' /etc/ | grep -viE '(binary|no such)' > >> So, what is the problem with this? Both usages are legitimate (if one >> understands what she is doing, of course). look one so simple in /etc/init.d/rc for i in /etc/rc$runlevel.d/K$level* do # Check if the script is there. [ ! -f $i ] && continue The [ ! -f $i ] is not going to make what she was meaning (thinking she know what she was doing) Now, as I am a troll, you can say like I don't know a fuck and everybody with svn access is a master. I'm not going to fill a lot of little bugs for this, I expect debian scripts to be designed following some simple bash best practices. > touch "o rly?" > > 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 > *.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 just don't get why posion singles out $i among all other possible variable > names. Or /etc/ when that's not the main place where you find scripts in. ok, change by \w the example command and match more, but I think there is nothing like a human (being) review. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimlvsn6zthlarsedxy_ffinbq23yza-zgi3y...@mail.gmail.com
Re: 38
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* >> > do >> > # Check if the script is there. >> > [ ! -f $i ]&& continue >> > >> >The [ ! -f $i ] is not going to make what she was meaning (thinking >> >she know what she was doing) >> >> why no? >> >> IMHO I still think it is save and intentional. In bash there is not SAVE the avoid of quotes on strings that you are not SURE that are simple words. Dot. > > Not if I have a "/etc/rc2.d/K03my damn daemon" > > Samuel > > > -- > To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20100827082732.gb5...@const.bordeaux.inria.fr > > -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinv-z4_iztfyjfz15j2d3bfh12aq5ls2takh...@mail.gmail.com
Re: 38
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 answers to these other questions aren't interesting. 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 -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlkti=x8sbwjexeca66-mnwl6a2i_kt1t2aqq9wr...@mail.gmail.com
Re: 38
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 and LSB won't prevent users (even root) from doing that. > > And if root types “rm -rf /”, is it a bug in Debian? If root creates a spaced or hugly chars filename, or some program creates it, is a bug in Debian ? I just use to try to code bash, as bash needs to be coded and fix my problems when they are pointed. If this discussion should follow if any of the LOTS of unquoted variables, (bash completion issues, filename issues, etc) just why don't use the bug tracker as the kid nosier troll silly was stated for. In all the other that does not apply, let them unquoted, they will look sexy to many young drm-ized people. Greetings -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiklqjy2qemvhp__hlztqnyzb469rtxdtefwl...@mail.gmail.com
Re: 38
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 documentation shipped locally or pointed in common #irc channels i.e.: http://mywiki.wooledge.org/BashPitfalls As any other in the #bash /topic, on freenode where I go when I'm in doubt, as with other channels/technologies. I don't know python, but sometimes I try to mix sh and perl syntax involuntary. Maybe that this shared knownoledge, can help some day, to keep in mind failure points, and improve all of you this w-o-n-d-e-r-f-u-l distribution. And I've still some questions about some things, but I do not want to annoy the list, so: bye -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinzunvmrkdx2dl1zc29hjfgtw0rcu0hhvjxa...@mail.gmail.com
Re: 38
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 debian people, included all and each one without exceptions. Greetings > Norbert > > Norbert Preining prein...@{jaist.ac.jp, logic.at, debian.org} > JAIST, Japan TeX Live & Debian Developer > DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 > > BURTON COGGLES > A bunch of keys found in a drawer whose purpose has long been > forgotten, and which can therefore now be used only for dropping down > people's backs as a cure for nose-bleeds. > --- Douglas Adams, The Meaning of Liff > > > -- > To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > http://lists.debian.org/20100827143652.gp5...@gamma.logic.tuwien.ac.at > > -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimxj0yyr6ob3wf72kjzm-u_tmhyj0nkeconh...@mail.gmail.com
Re: c'toi le 38...
On Fri, Aug 27, 2010 at 6:59 PM, Christian PERRIER wrote: > Quoting posion bit (poison...@gmail.com): > >> I'm not going to fill a lot of little bugs for this, I expect debian >> scripts to be designed following some simple bash best practices. > > By what miracle do you expect this to happen (assuming you have a > point somewhere) if you don't file bugs? > > Do you expect maintainers to discover this by being illuminated by > some magic raylight from "$DEITY" (quoted) shouting, with a loud voice, > from behind his|her|its cloud: "Thou Shalt Quote Thy Variables"? Hello Christian, I'm not opening bugs by many motives: - I'm not still sure if I should remain using debian other N years, or stop now. - I do not want to annoy more people (yet) - People is working in releasing squeeze, If I could dedicate some effort, could be better to review pending bugs, not undetected bugs that depending who is talking aren't bugs. There are some more reasons, but I prefer not explain all of them You know that I was talking about more things than quotes in the other day words that we crossed. Debian want to improve user experience... ok... think again... instead of (or added to) the command-not-found efforts, maybe better a man debian.1 as the one attached, and all the others linked in that .1 example (and maybe updates for some of them with apt) try man -k debian in a default install. There are some things but... search them... you know, the prompt is very black at first login. If command not found is good, a man debian followed by all other official/practical docs I put in the example (based on the website). "Where", and "how" and to "which package" I should start filing bugs to avoid coexistence problems, is unknown to me at this moment. "When"... it is clear that I prefer not doing it these days that my blood is running a little fast. The example is in pod format (sorry), paste this in a example.pod and then read with perldoc example.pod How do you see this kind of things? and where should I fill bugs about things that nobody wants to talk about? how do I fill "the future Debian bashrc has the bashrc that ubuntu had some year ago" ? I don't see the "positive" way of do it. =head1 NAME Debian - The universal operative system. =head1 SYNOPSIS Debian is a free operating system (OS) for your computer. An OS is the set of basic programs and utilities that make your computer run. =head1 DESCRIPTION Debian GNU/Linux uses the Linux kernel (the core of an OS), but most of the basic OS tools come from GNU project; hence the name GNU/Linux. Debian GNU/Kfreebsd uses the FreeBSD kernel, but most of the OS tools come from GNU project; hence the name GNU/FreeBSD. Debian provides more than a pure OS: it comes with over XX000 packages, precompiled software bundled up in a nice format, for easy installation on your machine. =head1 GETTING STARTED You are using a program called B that program has its own manual, and also talks about how you can search into the documentation and more topics. To open the B manual you will need: man man Debian documentation is very extensive and detailed. This manual comes in each Debian release, and index which directions you can choose: B man man man debian man debian_squeeze man debian_squeeze_upgrade man debian_releases man debian_help_and_contact man debian_bugs B man debian_free_software man debian_social_contract man debian_help_and_contact man debian_donations man debian_mailing_lists man debian_news man debian_partners B man debian_developer man debian_documentation man debian_mantainer man debian_teams man debian_translation B man debian_system_boot man debian_sysyem_kernel man debian_system_init man debian_system_networking man debian_system_software man debian_system_policies B man_debian_history man_debian_fooo man debian_reference =head1 ONLINE INFORMATION B Lhttp://www.debian.org Lhttp://www.debian.org/... Lhttp://www.debian.org/... Lhttp://.debian.org/ L... > > > > > > > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAkx37uAACgkQ1OXtrMAUPS0f8gCgo9VoPuuEgvuIHf4kWSEnZ34D > 11sAn0+wdw8q5227Lz3t3fV7sDnzUO9K > =H9lv > -END PGP SIGNATURE- > > -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinnaoted2afzg8ajjvjm5dqzvjbje2utyfp8...@mail.gmail.com
Re: 38
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 actionable reports is basically useless and just wastes a > bunch of people's time. I'm sending the unsubscribe request as soon as I send this email. Sorry for inconvenience all of you. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlkti=whe3zrxdxthkmmixvndm-5jaq0uwv6=7_z...@mail.gmail.com