Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Inconsistent ls -l results??

by ZZamboni (Curate)
on Jun 14, 2001 at 22:19 UTC ( #88544=note: print w/ replies, xml ) Need Help??


in reply to Inconsistent ls -l results??

Solaris comes with two versions of ls: the BSD version in /usr/ucb/ls, and the SystemV version in /usr/bin/ls. And it turns out that the -g flag has opposite effects. On the BSD version, -g makes it show the group of the file (which is not shown by default), whereas in the System V version, the group is shown by default, and -g hides it.

So the problem must be that your programs are using different paths, so they end up executing the different versions of ls.

--ZZamboni


Comment on Re: Inconsistent ls -l results??
Re: Re: Inconsistent ls -l results??
by Anonymous Monk on Jun 14, 2001 at 22:26 UTC
    That sounds good. I don't use stat because stat returns only epochal time, and I would have to import an extra module to re-parse that into human-comprehensible calendrical time.
      Not true. localtime($epoch_time) will return an array with all the time components. And scalar(localtime($epoch_time)) will even give you a nicely formatted string.

      --ZZamboni

        oh ok. The Date::Time or was it Time::Date or whatever has a similar function that takes a lot more complicated arguments. still, `date` works just fine for me. security is not really an issue in my environment.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://88544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-05 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls