Easily fixed by `export longpath="$(echo "$longpath" | cut -c 1-90)"`. The problem is that only `bash` understands this syntax.

In related news, I think that the whole block might gain readability by replacing with

```bash
string45=0123456789abcdefghijklmnoprstuvwxyz0123456789
longpath=$longpath$longpath
```