Right, because so many of us have tabs newlines and spaces in our filenames - particularly our mediawiki extensions.
On Mon, Apr 6, 2009 at 7:27 AM, Juliano F. Ravasi ml@juliano.info wrote:
Benjamin Lees wrote:
I think that would have to be cd /var/www/mediawiki && svn update && for dir in `ls /var/www/mediawiki/extensions`;do cd "/var/www/mediawiki/$dir" && svn update;done;
Don't ever use 'ls' to generate a word list for use with 'for', it'll hurt yourself when you least expect. This should be enough:
cd /var/www/mediawiki && svn update && for dir in /var/www/mediawiki/extensions/*/ do cd "$dir" && svn update done
-- Juliano F. Ravasi ยทยท http://juliano.info/ 5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96
"A candle loses nothing by lighting another candle." -- Erin Majors
- NOTE: Don't try to reach me through this address, use "contact@"
instead.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l