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

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



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 ')'.  For the
> script to be Bourne sh-compatible, these would need to be backquotes '`'
> instead.

$(foo) being a bashism is news to me.

> I haven't investigated for other structures that invalidate abcde's
> claim of sh-ness, but it seems likely that they could exist.

abcde runs under ash without problems. Ash is, of course, not the definition
of Bourne or POSIX compliance, however I'm curious as to what shell abcde
doesn't run under on your system.

> Since the current style of the script is preferable -- sh-style
> backquotes are ugly and prone to error

I simply can't implement the current version of abcde with backticks. I ran
into that limitation over two years ago. Code like sed 's/"/"'"'"'"'"'"'"/g'
(actual code from 1.0.2) deserves to be retired.
-- 
Robert Woodcock - rcw@debian.org
"We don't feel the need to get personal information to give sale prices."
	-- Ilga Westberg, marketing director for Food Markets Northwest

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