Eric Blake | 30 Sep 17:01 2014
Picon

'set' leaks garbage from environment

The recent changes in bash have prompted me to look closer at dash's
behavior with unusual name/value settings in the environment.  I found
at least two bugs:

Per the documentation of set,
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#set
"If no options or arguments are specified, set shall write the names and
values of all shell variables in the collation sequence of the current
locale.... The output shall be suitable for reinput to the shell,
setting or resetting, as far as possible, the variables that are
currently set;"

Elsewhere,
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
"Environment variable names used by the utilities in the Shell and
Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase
letters, digits, and the '_' (underscore) from the characters defined in
Portable Character Set and do not begin with a digit. Other characters
may be permitted by an implementation; applications shall tolerate the
presence of such names."

Here's the behavior I observe with dash 0.5.7 (as built for Fedora 20):

$ env 'a|b=' dash -c 'set | grep a"."b'
a|b=''

Oops - set is claiming that 'a|b' is the name of a current shell
variable; but this is impossible.  Worse, the text quoted from POSIX
means that I should be able to safely do:

(Continue reading)

Dr. Nonaka Takashi | 29 Sep 22:39 2014
Picon

Waiting to hear from you

Waiting to hear from you

I am Dr. Nonaka Takashi. (Head of Internal Audit Group, Deputy President,
Executive Officer and Director of Mizuho Trust & Banking Co., Ltd), Japan.
I have a lucrative business proposal of mutual interest to share with you,
If you are interested in working with me, contact me through my private
Email; ( nonaktakashi <at> aol.jp ) for further details

Kind Regards
Dr. Nonaka Takashi
E-mail: nonaktakashi <at> aol.jp

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Herbert Xu | 29 Sep 11:08 2014
Picon
Picon

Kill pgetc_macro

While looking at the backslash newline bug it occured to me that
pgetc_macro is vestigial and should be removed.  I've run some
speed tests on the result and the difference appears to be in the
noise.  But if anyone sees a big regression please let me know.

commit 339b9c0781cca7afb0964c6a655cda8ad9cf9fc2
Author: Herbert Xu <herbert <at> gondor.apana.org.au>
Date:   Mon Sep 29 17:05:53 2014 +0800

    [INPUT] Kill pgetc_macro

    pgetc_macro is identical to pgetc except that it's a macro and
    pgetc isn't.  Since there is very little performance difference
    on modern systems it's time to kill pgetc_macro.

    Signed-off-by: Herbert Xu <herbert <at> gondor.apana.org.au>

diff --git a/ChangeLog b/ChangeLog
index 7345144..0fbc514 100644
--- a/ChangeLog
+++ b/ChangeLog
 <at>  <at>  -1,3 +1,7  <at>  <at> 
+2014-09-29  Herbert Xu <herbert <at> gondor.apana.org.au>
+
+	* Kill pgetc_macro.
+
 2014-09-28  Herbert Xu <herbert <at> gondor.apana.org.au>

 	* Correctly handle test ! ! = !.
diff --git a/src/input.c b/src/input.c
(Continue reading)

Dr. Martin Dustin | 1 Sep 11:31 2014
Picon

bitte antworten


-- 
Lieber Freund,

Wie geht es Ihnen heute? Ich hoffe, fein, ich bin Dr. Martin Dustin aus 
Harlesden , North West London, hier in England. Ich arbeite für NatWest 
Bank London (National Westminster Bank Plc. ) . Ich schreibe Ihnen aus 
meinem Büro , die von einer großen immensen Nutzen für beide von uns 
ist. In meiner Abteilung , wobei die Co-Trainer ( Region Greater London) 
, entdeckte ich eine verlassene Summe von £ 16,5 Millionen Pounces ( 
Sechzehn Millionen fünfhunderttausend Pounces und Pfund Sterling ) in 
einem Konto, das zu einem unserer ausländischen Kunden Spät Herr Ron 
Bramlage gehört , ein Amerikaner, der in Kansas Staaten lebt , die ein 
Opfer von einem Hubschrauberabsturz im vergangenen Jahr 8. Juni 2012 war 
in Florida Sumpf ihn zu töten und Familienmitgliedern. Ron war 45 Jahre 
alt . Auch in der Chopper zum Zeitpunkt des Absturzes war seine Frau 
Rebecca , 43, und die Kinder des Paares - Brandon , 15; Boston , 13; 
Beau , 11; und 8 -jährige Roxanne - wurden getötet. Der Pilot war auch 
tot ist.

Die Wahl der Kontaktaufnahme mit Ihnen ist aus der geographischen Natur, 
wo Sie leben , vor allem aufgrund der Sensibilität der Transaktion und 
die Vertraulichkeit hier geweckt , Jetzt ist unsere Bank hat für keine 
der Verwandten gewartet zu kommen -up für die Behauptung, aber niemand 
hat getan, ich persönlich war in der Suche die Verwandten für eine lange 
Zeit erfolglos. Mein lieber Freund , ich suche Ihre Zustimmung an Sie 
als nächsten Angehörigen / Wird Zuschussempfängers mit dem Verstorbenen 
zu präsentieren , so dass die Erlöse aus diesem Konto bei £ 16,5 Mio. 
Pounces geschätzt kann Ihnen bezahlt werden.

(Continue reading)

Dr. Nonaka Takashi | 1 Sep 01:35 2014
Picon

Pls Respond Ungent


Waiting to hear from you

I am Dr. Nonaka Takashi. (Head of Internal Audit Group, Deputy President,
Executive Officer and Director of Mizuho Trust & Banking Co., Ltd), Japan.
I have a lucrative business proposal of mutual interest to share with you,
If you are interested in working with me, contact me through my private
Email; ( nonakatak <at> aol.jp ) for further details

Kind Regards
Dr. Nonaka Takashi
E-mail: ntakashi <at> aol.jp

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Gerrit Pape | 30 Aug 23:23 2014

Debian jessy freeze

Hi Herbert, current Debian testing 'jessy' is about to be frozen on
2014-11-05.  Currently I have version 0.5.7-4 in jessy, which is a bit
derived from your v0.5.7 and current master branch, see below.

My repository is available through http://smarden.org/git/dash.git
(branch release+patches)

Do you have any plans to release a version v0.5.8 soon?  I'd be happy to
sync with it and give it broader testing in Debian unstable.

Regards, Gerrit.

$ git shortlog origin/master..release+patches
Gerrit Pape (10):
      import contents of upstream dash-0.5.3.tar.gz archive.
      import contents of upstream dash-0.5.4.tar.gz archive.
      Merge commit 'v0.5.4' into upstream
      import contents of upstream dash-0.5.5.1.tar.gz archive.
      Merge commit '6045fe25078345074f027312d106d3fc19df56e5' into release
      Merge commit 'v0.5.6.1' into candidate
      import contents of upstream dash-0.5.6.1.tar.gz archive
      [SHELL] print \n upon EOF (CTRL-D) when run interactively
      [JOBS] address format-security build error
      [EVAL] Report I/O error on stdout

Herbert Xu (5):
      [EVAL] Fix command -- crash
      [EXPAND] Fix corruption of redirections with byte 0x81
      [JOBS] Fix wait regression where it does not wait for all jobs
      [BUILTIN] Continue after EINTR in read(1) with no pending signals
(Continue reading)

Oleg Bulatov | 26 Aug 14:15 2014

Line continuation and variables

Hi!

While playing with sh generators I found that dash and bash have different
interpretations for <slash><newline> sequence.

$ dash -c 'EDIT=xxx; echo $EDIT\
> OR'
xxxOR
$ bash -c 'EDIT=xxx; echo $EDIT\
OR'
/usr/bin/vim

$ dash -c 'echo "$\
(pwd)"'
$(pwd)

Is it undefined behaviour in POSIX?

--

-- 
WBR, Oleg Bulatov
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Chema Gonzalez | 5 Aug 18:40 2014
Picon

[PATCH dash] [BUILTIN] ensure LC_COLLATE is not overriden

If the user environment has either LC_ALL or LANG defined, the setting
of LC_COLLATE in src/mkbuiltins is overriden. With a non-POSIX locale,
the orders of dotcmd (remember that '.' is 0x2e in ascii) and truecmd
(':' is 0x3a in ascii) are reversed, which makes the ":" command fail
in the bsearch.

Tested:

Before this patch:

$ env |grep -e LANG -e LC_ALL
LC_ALL=en_US.ISO8859-15
LANG=en_US.iso885915
$ ./autogen.sh
...
$ ./configure
...
$ make clean; make -j 40
...
$ ./src/dash -c ":"
./src/dash: 1: :: not found
$ grep -A 3 'struct builtincmd builtincmd' src/builtins.c
const struct builtincmd builtincmd[] = {
        { ":", truecmd, 3 },
        { ".", dotcmd, 3 },
        { "[", testcmd, 0 },
$ make clean; LC_ALL= LANG= make -j 40
...
$ ./src/dash -c ":"
$ grep -A 3 'struct builtincmd builtincmd' src/builtins.c
(Continue reading)

Mrs. Nicole | 18 Jul 09:07 2014
Picon

Hi

Business Proposal

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Luigi Tarenga | 8 Jul 16:23 2014
Picon

bug in dash compile with buildroot

hi,
I send this bug report to both list because I'm not sure who will find 
this relevant.

I compiled a buildroot image for a laptop with atom so the build is for 
x86_64
architecture. In the build configuration I flagged to include dash and 
this get
compiled as static (this let me test the bug even on the host system).

While writing some test script (actually a init process written in dash) 
I hit this
strange bug:

# dash -c "( echo ciao) &)"
ciao
Segmentation fault

# dash -c "(echo ciao; /bin/true)&"
ciao

# dash -c "(echo ciao; /bin/true; echo ciao)&"
ciao
ciao
Segmentation fault

As you see if I put a subshell in background it dump. If in the same 
subshell I execute
an external command as last command it works.
I write this bug even to the buildroot team because if I rebuild dash 
(Continue reading)

Adam Borowski | 28 Jun 06:56 2014
Picon

[PATCH] \e in "echo" and "printf" builtins

Hi!

I'm not sure what's your policy towards extensions, but \e as \033 is
something ubiquitous in the Unix world.  C compilers (gcc, clang, icc and
tcc -- but not MSVC), perl, shells (bash and zsh -- but not dash), etc.

What about supporting it in dash as well?
Patch attached.

--

-- 
Gnome 3, Windows 8, Slashdot Beta, now Firefox Ribbon^WAustralis.  WTF is going
on with replacing usable interfaces with tabletized ones?

Gmane