Comment 2 for bug 60286

Revision history for this message
Christian Holtje (docwhat) wrote :

Sorry for not doing the obvious. D'oh!

System Version: Dapper Drake (6.06LTS)
backupninja 0.9.2-3
/bin/sh is a symlink to bash

This is actually a bug, even with dash.

Script to demonstrate the problem. You can invoke it with any Bourne style shell you want and if the shell has globbing, it'll go boom: (see attachment)

This is true of the 'tr -d [:alpha:]' line too.

Example Output:
# env -i dash /tmp/bug.sh
+ DIR=/tmp/bug.demo1.9173
+ mkdir /tmp/bug.demo1.9173
+ cd /tmp/bug.demo1.9173
+ touch u
+ echo I WANT LOWER
+ tr u [:lower:]
tr: misaligned [:upper:] and/or [:lower:] construct
+ rm -rf /tmp/bug.demo1.9173

I suspect that I must have a single character filename wherever the
cwd of backupninja is when I run it via cron.

Sorry I didn't give you better information before. I don't know what
I was thinking.

Ciao!