<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/sh/input.c, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-16T17:54:42Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sh: Avoid some headers when NO_HISTORY is set.</title>
<updated>2021-11-25T01:53:39Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2021-11-25T01:52:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=971677d5fd4cc6e776468cb80e0a05fdd3f4da49'/>
<id>urn:sha1:971677d5fd4cc6e776468cb80e0a05fdd3f4da49</id>
<content type='text'>
This is more simpler compatibility with using this source on older
systems before libedit was made to install filecomplete.h in
commit b315a7296d2.
</content>
</entry>
<entry>
<title>sh: Add -o verify to use O_VERIFY when sourcing scripts</title>
<updated>2021-09-23T08:43:09Z</updated>
<author>
<name>Stephane Rochoy</name>
<email>stephane.rochoy@stormshield.eu</email>
</author>
<published>2021-09-23T08:40:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d2c233176f44944ef3ed941a60010839340c06a7'/>
<id>urn:sha1:d2c233176f44944ef3ed941a60010839340c06a7</id>
<content type='text'>
Add -o verify to sh to make it use O_VERIFY when
sourcing scripts and reading profiles.

Useful in conjunction with mac_veriexec to help protect at
least some parts of the boot sequence, e.g., /etc/rc*.

Differential revision:	https://reviews.freebsd.org/D30464
Reviewed by:		jilles, sjg
Obtained from:		Stormshield
</content>
</entry>
<entry>
<title>sh: remove duplicate el definition</title>
<updated>2020-03-28T17:02:32Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-28T17:02:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=becf15d7cb88e7ad54acd80cfba91e5ce56e5644'/>
<id>urn:sha1:becf15d7cb88e7ad54acd80cfba91e5ce56e5644</id>
<content type='text'>
el is declared extern in myhistedit.h and defined in histedit.c. Remove the
duplicate definition in input.c to appease the -fno-common build.

-fno-common will become the default in GCC10/LLVM11.

MFC after:	3 days
</content>
</entry>
<entry>
<title>sh: Use 126 and 127 exit status for failures opening a script</title>
<updated>2018-11-27T21:49:59Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2018-11-27T21:49:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77da4a95e81a3d27991a2d2af5a93fcdbd4c7cf7'/>
<id>urn:sha1:77da4a95e81a3d27991a2d2af5a93fcdbd4c7cf7</id>
<content type='text'>
This affects scripts named on the command line, named with a '.' special
builtin and found via the PATH %func autoloading mechanism.

PR:		231986
</content>
</entry>
<entry>
<title>Renumber copyright clause 4</title>
<updated>2017-02-28T23:42:47Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-02-28T23:42:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fbbd9655e5107c68e4e0146ff22b73d7350475bc'/>
<id>urn:sha1:fbbd9655e5107c68e4e0146ff22b73d7350475bc</id>
<content type='text'>
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by:	Jan Schaumann &lt;jschauma@stevens.edu&gt;
Pull Request:	https://github.com/freebsd/freebsd/pull/96
</content>
</entry>
<entry>
<title>sh: Fix set -v and multiline history after r295825.</title>
<updated>2016-02-23T22:44:01Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2016-02-23T22:44:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=84f1891033161f057ede75e5102d4b28c616acee'/>
<id>urn:sha1:84f1891033161f057ede75e5102d4b28c616acee</id>
<content type='text'>
r295825 erroneously dropped the newline from the input data for 'set -v'
output and multiline history.

Reported by:	vangyzen
</content>
</entry>
<entry>
<title>sh: Remove unnecessary flushouts while reading script.</title>
<updated>2016-02-21T16:48:37Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2016-02-21T16:48:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b3c9ccf082864d7eacec9ccfb98603edbf93b5e'/>
<id>urn:sha1:3b3c9ccf082864d7eacec9ccfb98603edbf93b5e</id>
<content type='text'>
Output is flushed when a builtin is done or immediately after writing it
(error messages, set -v output, prompts).
</content>
</entry>
<entry>
<title>sh: Rework code to remove '\0' from shell input.</title>
<updated>2016-02-19T21:53:12Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2016-02-19T21:53:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dcd95d8a010c87b954128824c40a6cb3b28a3688'/>
<id>urn:sha1:dcd95d8a010c87b954128824c40a6cb3b28a3688</id>
<content type='text'>
This fixes bugs where '\0' was not removed correctly and speeds up the
parser.
</content>
</entry>
<entry>
<title>sh: Remove arbitrary length limit on &lt;&lt; EOF markers.</title>
<updated>2014-09-14T16:46:30Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2014-09-14T16:46:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72238faa6a9eea186c68bf9eff53f1999f80f33f'/>
<id>urn:sha1:72238faa6a9eea186c68bf9eff53f1999f80f33f</id>
<content type='text'>
This also simplifies the code.
</content>
</entry>
</feed>
