Re: Punctuation characters in Debian packaging

2014-11-03 Thread Stephane Chazelas
2014-11-03 15:40:46 +, Ian Jackson: I have just made this wiki page: https://wiki.debian.org/Punctuation [...] Just a wee note: Character Use in Debian packaging Other important uses [...] ^

$*/$@/$IFS and Bourne vs Almquist vs Korn vs mksh (Was: bash exorcism experiment ('bug' 762923 763012))

2014-10-15 Thread Stephane Chazelas
2014-10-15 12:13:06 +0200, Thorsten Glaser: On Mon, 13 Oct 2014, Stephane Chazelas wrote: $*, $@, $* were not special in any way. They just underwent the same rules as other variables. Only $@ was. This changed in POSIX sh though. I remember having to change some things in mksh to adhere

Re: [OT] $*/$@/$IFS and Bourne vs Almquist vs Korn vs mksh

2014-10-15 Thread Stephane Chazelas
2014-10-15 16:19:00 +0200, Thorsten Glaser: [...] tglase@tglase:~ $ dash -c 'IFS=; x=abc; printf %s\n ${x#$*}' x a b | sed -n l a$ abc$ tglase@tglase:~ $ ksh93 -c 'IFS=; x=abc; printf %s\n ${x#$*}' x a b | sed -n l c$ tglase@tglase:~ $ mksh -c 'IFS=; x=abc; printf %s\n ${x#$*}' x a b |

Re: bash exorcism experiment ('bug' 762923 763012)

2014-10-13 Thread Stephane Chazelas
2014-10-07 15:03:05 +0200, Thorsten Glaser: On Sat, 4 Oct 2014, Russ Allbery wrote: If we were to decide that #309415 should be fixed in policy (and hence posh), then it should be done by requiring support for the obsolescent The problems with posh and dash are also the sheer number of

Re: bash exorcism experiment ('bug' 762923 763012)

2014-10-13 Thread Stephane Chazelas
2014-10-13 12:21:33 +0200, Thorsten Glaser: On Mon, 13 Oct 2014, Dominik George wrote: foo='x[$(rm -rf /)]' echo $(( foo )) Guess when the array index is evaluated? Now mind that it could be This is fully and completely a user error. (User being the script.) user-provided.

Re: bash exorcism experiment ('bug' 762923 763012)

2014-10-13 Thread Stephane Chazelas
2014-09-29 09:22:58 +1000, Russell Stuart: On Sun, 2014-09-28 at 16:47 +0200, Guillem Jover wrote: I've attempted to port the many shell scripts I've written over the years to dash. The three irritants are: - pipefail, http://cfajohnson.com/shell/cus-faq-2.html#Q11. That's

Re: bash exorcism experiment ('bug' 762923 763012)

2014-10-13 Thread Stephane Chazelas
2014-10-02 10:06:50 -0400, shawn wilson: [...] I hate the idea of dash. It's not more secure (see vmware cve for an example) and I think it was more of an accident than anything else this didn't hit dash too. [...] That CVE is not about a bug in dash. There are a few misconceptions around that