lsb

export BASHISM=YES does not trigger a bashism alert

Bug #1332181 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

Consider this snippet:

#!/bin/sh
export JESS=SAD
# The syntax "export VAR=value" isn't accepted, should be VAR=value export VAR
to be POSIX compatible as far as I'm aware.

read -e LSB
# This is not supported for all POSIX shells [in fact, only bash as far as I'm
aware], I specifically tried on dash.

From bash's man page:
Use an emacs-style command line editing interface.
This is enabled by default when the shell is interactive,
unless the shell is started with the --noediting option.
This also affects the editing interface used for read -e

In essence this is a great feature because if your bash is compiled with GNU
readline support [which it always is], you can achieve path completion and
arrow navigation when asking the user for input. But, as great as it, its bash
only.

I think these two cases should be added and reflected in GenHook() as defined
in /opt/lsb/bin/lsbappchk-sh.pl

Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.