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!


** Attachment added: "The bug script as an attachment."
   http://librarian.launchpad.net/4260706/bug.sh

-- 
/usr/sbin/backupninja tr: misaligned [:upper:] and/or [:lower:] construct
https://launchpad.net/bugs/60286

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to