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

Re: Username length inconsistencies.



> > Sure, this would work, but I was talking about _shell_script_  way of doing 
> > that...
> 
> if perl -e 'exit !!$>'; then
> 	: root
> else
> 	: not
> fi

Wow, I think I'm going to open a zoo for root-checking methods:)

Again, the above solution is OK for debhelper (as well as "id -u" one),
but assuming that perl is present on the system is still non-portable.
Most (if not all) commercial unices got shipped without perl... 


Thanks.

Alex Y.
-- 
   _ 
 _( )_
(     (o___           +-------------------------------------------+
 |      _ 7           |            Alexander Yukhimets            |
  \    (")            |       http://pages.nyu.edu/~aqy6633/      |
  /     \ \           +-------------------------------------------+


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: