<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/sh/parser.c, branch stable/8</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r220903: sh: Do not word split "${#parameter}".</title>
<updated>2011-05-06T12:49:32+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2011-05-06T12:49:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c2730883015a7af777869f37d6da8b090e34688d'/>
<id>c2730883015a7af777869f37d6da8b090e34688d</id>
<content type='text'>
This is only a problem if IFS contains digits, which is unusual but valid.

Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.

Reported by:	Seeker on forums.freebsd.org
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is only a problem if IFS contains digits, which is unusual but valid.

Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.

Reported by:	Seeker on forums.freebsd.org
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r213811: c89 linkage and storage class (also covers r213744, r213760)</title>
<updated>2010-10-20T18:25:00+00:00</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2010-10-20T18:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=706271a6d283d2620560de6e1d4d6c9eecd16e61'/>
<id>706271a6d283d2620560de6e1d4d6c9eecd16e61</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r209653: sh: Use $PWD instead of getcwd() for \w \W prompt expansions.</title>
<updated>2010-10-09T12:57:06+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-10-09T12:57:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c1f3ae5ae0e316ca611235fb5dd177e297ce15bd'/>
<id>c1f3ae5ae0e316ca611235fb5dd177e297ce15bd</id>
<content type='text'>
This ensures that the logical working directory (which may include
symlinks) is shown and is similar to the default behaviour of the pwd
builtin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that the logical working directory (which may include
symlinks) is shown and is similar to the default behaviour of the pwd
builtin.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r201053: sh: Various warning fixes (from WARNS=6 NO_WERROR=1):</title>
<updated>2010-10-03T21:56:20+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-10-03T21:56:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=723a22052b57bdefcb6446bf81a957d39196510d'/>
<id>723a22052b57bdefcb6446bf81a957d39196510d</id>
<content type='text'>
- const
- initializations to silence -Wuninitialized (it was safe anyway)
- remove nested extern declarations
- rename "index" locals to "idx"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- const
- initializations to silence -Wuninitialized (it was safe anyway)
- remove nested extern declarations
- rename "index" locals to "idx"
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r200956: sh: Constify various strings.</title>
<updated>2010-10-02T20:39:45+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-10-02T20:39:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=41fe6076f46f42e9868af20663ed4dcb1b2b1070'/>
<id>41fe6076f46f42e9868af20663ed4dcb1b2b1070</id>
<content type='text'>
Most of this is adding const keywords, but setvar() in var.c had to be
changed somewhat more.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most of this is adding const keywords, but setvar() in var.c had to be
changed somewhat more.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r210221: sh: Allow a bg command consisting solely of redirections.</title>
<updated>2010-08-01T14:14:48+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-08-01T14:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f3d244d3a136588e83772c2f904e689abe2074e6'/>
<id>f3d244d3a136588e83772c2f904e689abe2074e6</id>
<content type='text'>
Example:
  &lt;/dev/null &amp;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Example:
  &lt;/dev/null &amp;
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r209337: sh: Fix compilation with -DNO_HISTORY.</title>
<updated>2010-07-03T21:31:05+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-07-03T21:31:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=59941b368f1a93c77898c5fc8e835fcdd6c27262'/>
<id>59941b368f1a93c77898c5fc8e835fcdd6c27262</id>
<content type='text'>
The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the
necessary &lt;stdio.h&gt;.

Compiling with -DNO_HISTORY disables all editing and history support and
allows linking without -ledit -ltermcap. This may be useful for embedded
systems.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the
necessary &lt;stdio.h&gt;.

Compiling with -DNO_HISTORY disables all editing and history support and
allows linking without -ledit -ltermcap. This may be useful for embedded
systems.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r199282: sh: Allow a newline before "in" in a for command,</title>
<updated>2010-04-20T22:20:31+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-04-20T22:20:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=631680bf1cf2c7a84e4954838985de4e705b657f'/>
<id>631680bf1cf2c7a84e4954838985de4e705b657f</id>
<content type='text'>
as required by POSIX.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as required by POSIX.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r204276:</title>
<updated>2010-03-03T16:06:43+00:00</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-03-03T16:06:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=91288970cef24eec42482ddae319a49571084ceb'/>
<id>91288970cef24eec42482ddae319a49571084ceb</id>
<content type='text'>
Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR:		bin/89410
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR:		bin/89410
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r198173: sh: show more info about syntax errors in command substitution:</title>
<updated>2009-12-20T20:51:20+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2009-12-20T20:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=088e699c182acf62e96bbdc23e7f44425e256471'/>
<id>088e699c182acf62e96bbdc23e7f44425e256471</id>
<content type='text'>
the line number where the command substitution started.
This applies to both the $() and `` forms but is most useful for ``
because the other line number is relative to the enclosed text there.
(For older versions, -v can be used as a workaround.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the line number where the command substitution started.
This applies to both the $() and `` forms but is most useful for ``
because the other line number is relative to the enclosed text there.
(For older versions, -v can be used as a workaround.)
</pre>
</div>
</content>
</entry>
</feed>
