fixed random stuff

well, title states.
and there is some random binary for you:
11000011 01011101
10101110 11001111
00100011 00110110
01011000 01110101
11101111 11010100
11100101 10010011
00011001 11100101
10000101 10100000
11011001 01110110 10000111 00111000 00010000 10011001 10100111 10111100
10000101 00010000 01010010 10111101 10011101 00010101 10010001 00001101
10110100 10101111
00110001 11010101
01011010 11000000
00000100 10101011
01011111 11001111
This commit is contained in:
Wuerfel_21 2014-06-17 15:20:23 +02:00
parent 8ca7306f34
commit aca9894e76
2 changed files with 3 additions and 11 deletions

View File

@ -7,14 +7,6 @@ local shell = require("shell")
local term = require("term")
local text = require("text")
local function getHistSize()
if os.getenv("HISTSIZE") then
return os.getenv("HISTSIZE")
else
return 10
end
end
local function expand(value)
local result = value:gsub("%$(%w+)", os.getenv):gsub("%$%b{}",
function(match) return os.getenv(expand(match:sub(3, -2))) or match end)
@ -173,7 +165,7 @@ if #args == 0 and (io.input() == io.stdin or options.i) and not options.c then
term.write("exit\n")
return -- eof
end
while #history > getHistSize() do
while #history > (tonumber(os.getenv("HISTSIZE")) or 10) do
table.remove(history, 1)
end
command = text.trim(command)

View File

@ -15,8 +15,8 @@ local env = {
PWD="/",
SHELL="/bin/sh",
TMP="/tmp", -- Depricated
TMPDIR="/tmp"
HISTSIZE=10
TMPDIR="/tmp",
HISTSIZE="10"
}
os.execute = function(command)