Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nyagos got script error #442

Closed
naoyaikeda opened this issue May 2, 2024 · 4 comments
Closed

Update nyagos got script error #442

naoyaikeda opened this issue May 2, 2024 · 4 comments
Assignees
Labels

Comments

@naoyaikeda
Copy link

I update nyagos 4.4.14 -> 4.4.15
I got script error.

Nihongo Yet Another GOing Shell 4.4.15_0-windows-amd64 by go1.20.14
(c) 2014-2024 NYAOS.ORG https://github.com/nyaosorg/nyagos
C:\Users\gorn.nyagos:1: attempt to call a non-function object
stack traceback:
C:\Users\gorn.nyagos:1: in main chunk
[G]: ?

.nyagos is as follows.

alias "ll=ls -oFl"

nyagos.alias.printarg = function(args)
for i=1,#args do
print(args[i])
end
end

@hymkor
Copy link
Collaborator

hymkor commented May 2, 2024

Would you insert the following lines at the top of .nyagos temporally?

if not alias then
    require "aliasandset" 
end

The script aliasandset.lua defines alias "..." and it is modified to be not loaded on default at the version 1.20.15 .
I was considering the alias "..." is used by few people.
If there were many similar inquiries, I would return to the original specifications in the next version.

@hymkor hymkor self-assigned this May 2, 2024
@hymkor hymkor added the bug label May 2, 2024
@hymkor
Copy link
Collaborator

hymkor commented May 2, 2024

On 4.4.15_1, alias "ll=ls -oFl" is avaliable again .

Would you confirm ?

@naoyaikeda
Copy link
Author

I confirm problem was solved.

@hymkor
Copy link
Collaborator

hymkor commented May 9, 2024

Thank you

@hymkor hymkor closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants