> I think this is just a bug in the Plan 9 ls.  It uses
> cleanname as a crutch to avoid doubling / in some names,
> but that makes it somewhat inconsistent.  For example:
> 
>     cd /sys/src/cmd
>     ls . | grep ls.c
>     ls ./ls.c
> 
> produces two different lines.

Yes, as I commented in irc, that was somewhat confusing, but I thought
it was 'by design'.

> I put a new ls.c on sources that is a bit more consistent
> and should work better in the above script.

Cool.  It works for that test, but still ls output in Plan 9 is
different from Unix: in unix if the argument is a directory, it will
only print the file names instead of the full path, but it will
preserve any amount of // and /./ in the path if the argument is a
file.  But I think that can be emulated with wrapper script if that is
ever a problem(I wouldn't bother trying to emulate it for now).

> Says you.  I think having wrappers (as we do for yacc and ar)
> is a much better long-term approach.  Then there's still only
> one program providing the core functionality.

I agree that when possible, a wrapper is the best solution.
 
> Also, just to be clear, APE is the Ansi/Posix Environment,
> not the "Any random craP that linux does Environment".
> The configure scripts that autoconf writes are written to
> the intersection of pretty much every Unix out there,
> so if there's something they expect (like mkdir -p or ls -L)
> then it's worth adding.  But compatibility with GNU/Linux
> is *not* the goal.

GNU/Linux is what all Unixes try to emulate as closely as possible
this days; but I agree aiding portability is the main goal of APE, not
gratuitous emulation of various GNU/braindamage like BSDs fashion so
much this days.

>> Maybe it's a recent "improvement" to the auto*hell world.
> 
> I don't really see the point to incendiary names like auto*hell.
> Are you just trying to make yourself feel better?

Yes, any way to release the frustration produced by messing with that
abomination helps.  I also punch the screen and bang my head
against the keyboard. 

Although it's starting to reach the level of Perl, where it becomes
impossible to take it seriously anymore and one starts to take it as
an hysterical parody.

uriel

Reply via email to