<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell, branch 1_00</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=1_00</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=1_00'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2004-10-08T09:43:34+00:00</updated>
<entry>
<title>Fix CONFIG_ASH_MATH_SUPPORT_64 so it actually works</title>
<updated>2004-10-08T09:43:34+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-10-08T09:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ad63cb25140996588f223b009b094f1408a52a4b'/>
<id>urn:sha1:ad63cb25140996588f223b009b094f1408a52a4b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hiroshi Ito writes:</title>
<updated>2004-10-08T08:14:58+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-10-08T08:14:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c00e11df856d280d7cff64aed78385e5f8be26bd'/>
<id>urn:sha1:c00e11df856d280d7cff64aed78385e5f8be26bd</id>
<content type='text'>
ash
   "unset OLDPWD; cd -"  causes segmentation fault.
    ( OLDPWD is not set when sh is invoked from getty. )

patch against current CVS is attached.
</content>
</entry>
<entry>
<title>egor duda writes:</title>
<updated>2004-10-08T07:46:08+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-10-08T07:46:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7daa076d3e24e84ce1f4e9b6133783816575c4c8'/>
<id>urn:sha1:7daa076d3e24e84ce1f4e9b6133783816575c4c8</id>
<content type='text'>
Hi!

I've created a patch to busybox' build system to allow building it in
separate tree in a manner similar to kbuild from kernel version 2.6.

That is, one runs command like
'make O=/build/some/where/for/specific/target/and/options'
and everything is built in this exact directory, provided that it exists.

I understand that applyingc such invasive changes during 'release
candidates' stage of development is at best unwise. So, i'm currently
asking for comments about this patch, starting from whether such thing
is needed at all to whether it coded properly.

'make check' should work now, and one make creates Makefile in build
directory, so one can run 'make' in build directory after that.

One possible caveat is that if we build in some directory other than
source one, the source directory should be 'distclean'ed first.

egor
</content>
</entry>
<entry>
<title>Fix a typo</title>
<updated>2004-09-24T09:09:44+00:00</updated>
<author>
<name>Glenn L McGrath</name>
<email>bug1@ihug.co.nz</email>
</author>
<published>2004-09-24T09:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=53090cdedd150ef17b480193b75a325b53af94fe'/>
<id>urn:sha1:53090cdedd150ef17b480193b75a325b53af94fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>A bit of extra explanation regarding STANDALONE</title>
<updated>2004-09-24T01:25:39+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-09-24T01:25:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6f8542b98d4d9771def598247ade9b45342a3096'/>
<id>urn:sha1:6f8542b98d4d9771def598247ade9b45342a3096</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patrick Huesmann noticed BusyBox would not link when</title>
<updated>2004-09-08T10:01:07+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-09-08T10:01:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4a79c0e9e149fa16e97aea6841d7efd71c775b50'/>
<id>urn:sha1:4a79c0e9e149fa16e97aea6841d7efd71c775b50</id>
<content type='text'>
CONFIG_FEATURE_COMMAND_EDITING was defined *and*
CONFIG_FEATURE_COMMAND_TAB_COMPLETION was undefined.

Vladimir N. Oleynik writes:

Its declare always, also if CONFIG_FEATURE_COMMAND_TAB_COMPLETION
undefined.
Patch to CVS version attached.

--w
vodz
</content>
</entry>
<entry>
<title>Jonas Holmberg from axis dot com writes:</title>
<updated>2004-09-02T23:13:10+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-09-02T23:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=fd7a4c8c2887187e901809d89997deefb8b99d97'/>
<id>urn:sha1:fd7a4c8c2887187e901809d89997deefb8b99d97</id>
<content type='text'>
This patch makes msh handle variable expansion within backticks more
correctly.

Current behaviour (wrong):
--------------------------

BusyBox v1.00-rc3 (2004.08.26-11:51+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

$ A='`echo hello`'
$ echo $A
`echo hello`
$ echo `echo $A`
hello
$


New behaviour (correct):
------------------------

BusyBox v1.00-rc3 (2004.08.26-11:51+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

$ A='`echo hello`'
$ echo $A
`echo hello`
$ echo `echo $A`
`echo hello`
$

The current behaviour (wrong according to standards) was actually my
fault. msh handles backticks by executing a subshell (which makes it
work on MMU-less systems). Executing a subshell makes it hard to only
expand variables once in the parent. Therefore I export all variables
that will be expanded within the backticks and let the subshell handle
the expansion instead.

The bug was found while searching for security leaks in CGI-scripts.
Current behaviour of msh makes it easy to expand backticks by mistake
in $QUERY_STRING. I recommend appling the patch before release of bb
1.00.

/Jonas
</content>
</entry>
<entry>
<title>Quiet a few warnings</title>
<updated>2004-08-27T19:55:28+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-27T19:55:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=785001468dffa2d532b6efa5603622dd85d2bc74'/>
<id>urn:sha1:785001468dffa2d532b6efa5603622dd85d2bc74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch from Vladimir N. Oleynik:</title>
<updated>2004-08-19T18:22:13+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-19T18:22:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cb01bb1d6876edbcff428b75f110ba1b237e08d9'/>
<id>urn:sha1:cb01bb1d6876edbcff428b75f110ba1b237e08d9</id>
<content type='text'>
On Wed Aug 18, 2004 at 06:52:57PM +0800, Matt Johnston wrote:
&gt; I've come across some strange-seeming behaviour when running programs
&gt; under Busybox (1.0.0-rc3) ash. If the child process sets stdin to be
&gt; non-blocking and then exits, the parent ash will also exit. A quick strace
&gt; shows that a subsequent read() from stdin returns EAGAIN (as would be
&gt; expected):

Thanks!
Patch attached.


--w
vodz
</content>
</entry>
<entry>
<title>Joe.C writes:</title>
<updated>2004-08-16T08:38:34+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-16T08:38:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=acd647c8774a556d0df77e6779867f9fa069cd22'/>
<id>urn:sha1:acd647c8774a556d0df77e6779867f9fa069cd22</id>
<content type='text'>
 This bug is in busybox 1.0.0-rc2. When using lash exec
builtin with redirection, the opened file fd keep increasing.
For example, please try the following command with lash.


ls -al /proc/&lt;lash pid&gt;/fd
exec /bin/sh 2&gt;/dev/null
ls -al /proc/&lt;lash pid&gt;/fd

  The last 'ls' command output will look like this. The fd
number 4 shouldn't exist.

lrwx------    1 501      100         64 Aug 13 13:56 4 -&gt; /dev/pts/5
l-wx------    1 501      100         64 Aug 13 13:56 2 -&gt; /dev/null
lrwx------    1 501      100         64 Aug 13 13:56 1 -&gt; /dev/pts/5
lrwx------    1 501      100         64 Aug 13 13:56 0 -&gt; /dev/pts/5
dr-xr-xr-x    3 501      100          0 Aug 13 13:56 ..
dr-x------    2 501      100          0 Aug 13 13:56 .

  This one-line patch fix this problem by setting CLOEXEC flag for
squirrel fd. Please apply.

Joe.C
</content>
</entry>
</feed>
