Subject: Re: bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir

From: Paul Eggert <[email-masked]>
Date: Wed, 05 Sep 2012 07:34:43 -0700

On 09/04/2012 11:58 PM, Linda A. Walsh wrote:
>    I'm not talking for interactive use... I'm talking for use in a script
> that might run on systems that are not mine -- so I can't rely on shell settings.

Yes you can.  Just start the script with "#!/bin/sh", as usual.
When invoked that way, Bash and other shells are POSIX-compliant
in this area.