-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Package: dash
Version: 0.5.7-4
Severity: normal
I was trapped by this strange bug. It seams that wildcards ("?" and "*")
are not resolved when used in redirection.
If I use the following in a script with sh (dash), it tries to write to
'/sys/class/leds/0003:17EF:6009.000?:amber:mute/brightness'.
#! /bin/sh
set -x
DEVICE=0003:17EF:6009.000
echo 1 > /sys/class/leds/${DEVICE}?:amber:mute/brightness
The following will work correct:
#! /bin/sh
set -x
DEVICE='0003:17EF:6009.000'
MUTE="$(echo /sys/class/leds/${DEVICE}?:amber:mute)"
echo 1 > $MUTE/brightness
With other shells (zsh or bash) both snipplets does the same.
- -- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (800, 'unstable'), (600, 'oldstable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13.2 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to
de_DE)
Shell: /bin/sh linked to /bin/dash
Versions of packages dash depends on:
ii debianutils 4.4
ii dpkg 1.17.7
ii libc6 2.18-4
dash recommends no packages.
dash suggests no packages.
- -- debconf information:
* dash/sh: true
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <[email protected]>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQGcBAEBCgAGBQJTXW4NAAoJEKZ8CrGAGfasyXIMAKlO6tgOWEvOYuyHXVC9wqYA
uARzighGNAbi57PVXJoj60UwOTMvTUtMx8wAerQKjqjjnglZYlf0E/4fxoy/2xA9
vJbuj67YmESKAwUzcnsU4676TtYAD7xiozQPDQLRR/dE1cXJxPSh21s5sIypehD4
T4H1P2iiu0/VfroqquiAtfNTJRbAaoX6jtfJdIbVHsV2sbjViSklJicmroQ0sC5y
2SLg0LzEv5rTY8eQhDJrgsOMG0vL2TSYvrb1qwbMCbLXDcxNh/yhz3ETsgrgr1i9
FLjeWws3An7Ylfhsw9sC6oCZWrwVfOetF0t6GAPTFwtRMPu9fTlCdx9j2ZZKXUhv
lRjg+q/pnmDW6jGgxXyUCCzBMDHyCvQEzSYy+Gc032pa1jbHKzCrtnfW4T0loAec
9tpa9EbEBLFpDmc91RKG913sHRp0wQJort2zn4mAihlZCfK/2m28exXaYbbtZhY9
DkgRgzfbDRzwPqzDzl8VTHXq6naFWlOJHIeWau19tQ==
=tmAj
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]