LWN.net Logo

Various notes on /usr unification

Various notes on /usr unification

Posted Mar 5, 2012 9:53 UTC (Mon) by jschrod (subscriber, #1646)
In reply to: Various notes on /usr unification by mpr22
Parent article: Various notes on /usr unification

But with /bin being a symlink to /usr/bin this would actually work, for once.

Not like now, where you can't write a bash script for both Linux (/bin/bash) and FreeBSD (/usr/bin/bash) without using #!/usr/bin/env. Then it could just be /usr/bin/bash and we would be done. Just as in Solaris, since many years.


(Log in to post comments)

Various notes on /usr unification

Posted Mar 5, 2012 10:55 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

I never understood why can't we just write:
>#!bash
or
>#!env bash

instead of using absolute paths.

Various notes on /usr unification

Posted Mar 5, 2012 12:12 UTC (Mon) by jwakely (subscriber, #60262) [Link]

You can, but it means the same as #!./bash so probably doesn't do what you wanted.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds