Re: Help with script - doesn't work properly from cron

2009-07-18 Thread Bernd Eggink
Erik Olof Wahlstrom schrieb: Hello - I am having a problem with a backup script that I have put together - when I run it as root from the terminal, it works as expected (with one caveat); however, when cron runs it, the daily backup folder is created but no files are deposited into that

Re: printf -v doesn't allow array assignment

2009-07-18 Thread Stephane CHAZELAS
2009-07-17, 22:02(-04), Chris F.A. Johnson: $ printf -v q[2] %s $RANDOM bash: printf: `q[2]': not a valid identifier I know I can work around it with a temporary variable, but it would be nice if it could be done in a single step. [...] Just do a touch q2 before and then it

bash 4: source does not search current dir

2009-07-18 Thread Denys Vlasenko
Hi, I assume . command does not search current directory anymore in bash 4 for a reason. Perhaps it is specified by relevant standard, although I did not find it. This incompatible change affects me a lot. I imagine I am not alone with this. To forestall questions from users like me, consider

Re: bash 4: source does not search current dir

2009-07-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Denys Vlasenko on 7/18/2009 11:48 AM: Hi, I assume . command does not search current directory anymore in bash 4 for a reason. Perhaps it is specified by relevant standard, although I did not find it. It is specified by POSIX: