Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Building ksh on opensuse wipes out home directory #477

Description

@siteshwar

There are some serious issues with how test cases were run in the last stable release. I installed rpm sources for ksh on opensuse with zypper source install ksh and did rpmbuild -ba ksh.spec. Test cases were run during the build and I saw errors like :

/tmp/ksh-build.hZy52m/tmp_1d.huj
test alias begins at 2018-04-17+19:44:20
/tmp/ksh-build.hZy52m/tmp_3a.92s
alias.sh[90]: /foo: cannot create [Permission denied]
chmod: cannot access '/foo': No such file or directory
	alias.sh[93]: hash -r -- foo failed, expected foo=/foo, got 
alias.sh[90]: /-foo: cannot create [Permission denied]
chmod: cannot access '/-foo': No such file or directory
	alias.sh[93]: hash -r -- -foo failed, expected -foo=/-foo, got 
alias.sh[90]: /--: cannot create [Permission denied]

At the end, my home directory was wiped out and filled with files like:

a  a-b  abc  abd  abe  aXb  b  bb  bcd  bdir  Beware  c  ca  cb  d  dd  de  man

These files are created by ksh test script. @bitstreamout Are you aware about this issue ? I am running a vanilla openSUSE Leap 42.3 system.

@krader1961 I have seen .sh_history file being modified when I run test cases on my fedora system. We should run the test cases in a sandboxed environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions