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

[abcde] Bug#147726: abcde: not sh-compatible despite shebang line



On Wed, May 22, 2002 at 07:24:50AM -0700, Robert Woodcock wrote:
> On Wed, May 22, 2002 at 09:36:07AM +1000, Ben Finney wrote:
> > However, there are "bashisms" throughout the script, primarily the
> > bash-style command interpolation operators, '$(' and ')'.
> 
> $(foo) being a bashism is news to me.

Another respondent corrected me -- $(foo) is a POSIX-ism, not a
bash-ism.  Debian policy says that /bin/sh can point to any
POSIX-compatible shell.

Relevant Debian policy quote:

=====
11.4. Scripts
-------------
     [...]

     The standard shell interpreter `/bin/sh' can be a symbolic link to
     any POSIX compatible shell, if `echo -n' does not generate a
     newline.[1] Thus, shell scripts specifying `/bin/sh' as interpreter
     should only use POSIX features.
=====

Since the $(foo) construct doesn't violate POSIX /bin/sh compatibility,
and I'm not aware of any other non-POSIX constructs in abcde, this bug
should be closed.

-- 
 \      "I don't know half of you half as well as I should like, and I |
  `\  like half of you half as well as you deserve."  -- Bilbo Baggins |
_o__)                                                                  |
bignose@zip.com.au  F'print 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B

To unsubscribe: echo unsubscribe | mail abcde-request@whimsica.lly.org