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

Re: [EVEN MORE OFFTOPIC] Re: /etc/shells management

* Steve Greenland 

| <rant>
| Except Solaris, whose /bin/sh doesn't support ~. Or aliases. Or brace
| expansion. Or the pattern matching expansions (i.e. ${VAR%foo} and
| friends). Or return outside of functions. Or shell arithmetic with let.
| Or '-p' for prompting on read. Etc. and so forth.

or «local», which leads to nice and clean code like:

#! /bin/sh

# SunOS /bin/sh is broken wrt local. *sigh*
if test "`uname -s`" = "SunOS" -a "$RUNNING_UNDER_BASH" = ""; then
    exec bash $0 "$@"

hoping that bash is somewhere in the path.

| </rant>

Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 

Reply to: