bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quotes invade positional parameters


From: Jan Schampera
Subject: Re: quotes invade positional parameters
Date: Sat, 18 Dec 2010 14:48:22 +0100
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

jidanni@jidanni.org wrote:

$ cat 201012contract
#!/bin/sh -eux
set a b c d e f
: ''$@''
: '  '$@'  '
: '    '$*'    '
: '    ' $* '    '
: " "$* " "
$ ./201012contract
+ set a b c d e f
+ : a b c d e f
+ : '  a' b c d e 'f  '
+ : '    a' b c d e 'f    '
+ : '    ' a b c d e f '    '
+ : ' a' b c d e f ' '
$ apt-show-versions bash
bash/unstable uptodate 4.1-3

OK, the problem may only be -x deep, affecting the -x reporting output,
but not the actual functionality, thank G.O.D.

I'd say this is expected (and by the way it's not only on set -x).

--
Be conservative in what you do, be liberal in what you accept from others.
- jbp, master of the net, in RFC793




reply via email to

[Prev in Thread] Current Thread [Next in Thread]