in reply to Re: getlogin works on debian but not ubuntu?
in thread getlogin works on debian but not ubuntu?
I guess getlogin fails, and that puts getpwuid's array output in scalar context or something? Dunno why it works differently on two versions of ubuntu.perl -e 'print getlogin || getpwuid($<)' bcrowellx10001000Ben Crowell,,,/home/bcrowell/bin/bash
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: getlogin works on debian but not ubuntu?
by LanX (Saint) on Jan 07, 2013 at 01:46 UTC | |
by bcrowell2 (Friar) on Jan 07, 2013 at 01:51 UTC | |
by mbethke (Hermit) on Jan 07, 2013 at 04:04 UTC | |
by bcrowell2 (Friar) on Jan 07, 2013 at 04:23 UTC | |
by mbethke (Hermit) on Jan 07, 2013 at 16:45 UTC |