/srv/irclogs.ubuntu.com/2013/07/04/#ubuntu-nz.txt

=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
kcjMorning.15:41
ibeardsleemorning19:24
ajmitchmorning19:26
ibeardsleeoh kernel update .. be back in a bit19:29
=== _thumper_ is now known as thumper
thumperok, stupid question time22:21
thumperas user tim on my system I have a PATH defined that includes some local bin directories22:22
thumpercreated an exec called "filetest" in one of these "~/go/bin" for those that are interested22:22
thumpersudo filetest fails with command not found22:22
thumperbut yet22:22
thumpersudo echo $PATH shows the path as including it22:22
thumperso why doesn't sudo look in the PATH for the directories?22:23
thumperI think it is just looking in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin22:23
thumperwhich is what I get if I do: 'sudo su -', 'echo $PATH'22:23
ibeardsleewhat happens with 'which filetest' ?22:23
thumperibeardslee: locally? or with sudo?22:24
ibeardsleeboth22:24
thumper$ which filetest22:24
thumper/home/tim/go/bin/filetest22:24
thumper$ sudo which filetest22:24
thumperis empty22:24
ajmitch_because you're using sudo, and you don't have it set to keep PATH22:24
ajmitch_when you sudo echo $PATH it expands it before passing to sudo22:25
thumperah22:25
thumperthat makes sense22:25
ajmitch_Defaults        env_reset22:26
ajmitch_Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"22:26
* thumper copies filetest to /usr/local/bin to continue testing22:26
ajmitch_you could change /etc/sudoers if you want, but that's messy :)22:26
thumpernah22:26
thumperdoesn't matter for the testing I'm doing22:26
thumperI'm wanting to confirm some uid checks and hunting for a file22:27
ollymorning22:28
ollythumper: to see the PATH inside sudo, you could try: sudo printenv|grep PATH22:29
thumperolly: oh, ta22:30
thumperis printenv like env?22:30
thumpersame thing22:30
ollyit gives your fingers more exercise22:31
* olly didn't know env also printed the env - only used it as a shell-portable way to set variables for a command22:31
ibeardsleeI notice that with all the X-Launchpad headers .. there isn't one that says what the bug number is23:19
ajmitch_ibeardslee: probably considered redundant since the bug # is in the subject23:21
ibeardsleeI'm having some fail at managing to extract that in my .procmailrc23:22
ibeardsleewould probably have just as much trouble if it was part of another header23:22
ajmitch_what are you wanting to do?23:22
ibeardsleefilter bugs into separate folders per bug23:23
ibeardsleewill evolution's search folders to deal with the other breakdowns as required23:23
ajmitch_sounds a bit like overkill, but that's because I have too many bugs to see :)23:23
ibeardsleecould get overkill down the track, but I'll worry about it then23:24
ajmitch_I'm sure you could use a regular expression on the Subject: header to capture the bug # & use that23:27
ibeardsleeyeap .. working on that .. actually using the reply-to header23:27
ajmitch_ok23:27
ibeardslee.. but failing23:28
thumperibeardslee: we don't normally have people wanting to filter on individual bugs23:28
thumperthat way lies insanity23:29
thumpersubject prefix is always r"\[Bug (\d+)\]"23:30
thumpersurely you can use regex23:31
ibeardsleeI thought I had a vague idea from copying the one that I found for dealing to mailing lists23:31
thumperibeardslee: although I agree about using the reply-to header, more likely to be consistent23:35
thumperas someone can change the subject of the email simply by using email with a different subject and emailing the bug23:36
ibeardsleebut the reply-to header can be changed with someone emailing me privately23:37
ajmitch_why do you want separate folders per bug?23:38
ajmitch_I could understand a folder per package, perhaps23:38
ibeardsleeI'm in the process of rethinking that23:38
ibeardsleealthough with OpenERP a bunch of bugs with the same project23:39
ibeardsleehmmm23:39
ajmitch_that's why mail clients have threading :)23:39
* ibeardslee just moves all ^X-Launchpad-Bug: into the same folder while he ponders a bit more23:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!