klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.09k stars 477 forks source link

pushd: too many arguments #157

Closed DeclanHoare closed 7 years ago

DeclanHoare commented 7 years ago

On my Arch system, the build scripts fail out of the box with "pushd: too many arguments" on line 163 of install.sh. I investigated this, and it seems that my system is resolving "zlib*" to both the extracted directory and the tarball itself. Changing the line from

pushd $DIR/tarballs/zlib*

to

pushd $DIR/tarballs/zlib*/

fixed it for me, but I'm submitting this as an issue rather than a PR in case it causes trouble on one of the supported hosts.

klange commented 7 years ago

Weird. Bash consistently accepts only the first argument to pushd for me and never complains about the other ones. I highly doubt that's a Debian patch, but... weird. I also use a glob for Mesa, so I've added the trailing / to that as well.