While creating a file based on link that's longer than 255 characters we'll encounter ```File name too long``` error. This workaround forms a filename by keeping first 255 characters and concatenates them with file extention.
While removing trailing newlines is a good idea, it is a problem when
editing C files which "must" have an empty line at the bottom.
So we leave just a single newline, if there were any.
Co-authored-by: Spenser Truex <truex@equwal.com>
* adopting `sb-`
The 2619a88fcd94cbd4b2caa719ba926ae0013fb4ec update might have broken scripts, like this, that use a script from `~sc/statusbar/`
* adopt `sb-`
Tested it on a project with this structure:
```
- root
|- test
| - Test.java
```
The user must call `compiler` from the root of the project, but that should not
be an inconvenience because usually the working directory is the project's
root. Nonetheless, it also works for java files in the current working directory,
in case someone just wants to test some code quickly.
* Compatibility for FreeBSD's paste(1)
According to FreeBSD's
[paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports),
the extra `-` is needed (tested by myself).
This obviously works for Linux as well, tested on Void Linux at least.
> Create a colon-separated list of directories named bin,
> suitable for use in the PATH environment variable:
`find / -name bin -type d | paste -s -d : -`
* Compatibility for FreeBSD's paste(1)
According to FreeBSD's
[paste(1)](https://www.freebsd.org/cgi/man.cgi?query=paste&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports),
the extra `-` is needed (tested by myself).
This obviously works for Linux as well, tested on Void Linux at least.
> Create a colon-separated list of directories named bin,
> suitable for use in the PATH environment variable:
`find / -name bin -type d | paste -s -d : -`