export BASHISM=YES does not trigger a bashism alert
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/
Changed in mandriva: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |