Closed (works as designed)
Project:
Drush
Component:
Core Commands
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2011 at 21:35 UTC
Updated:
9 Feb 2012 at 13:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
mdlueck commentedBTW: I confirmed that this was not an issue with Drush 3 / Drupal 6
Comment #2
greg.1.anderson commentedHm, others can weigh in, but my initial reaction is 'will not fix'. The benefit does not seem to be worth the restriction. We would have to do COLUMNS very early to insure that no one added any log message before that point.
@mdlueck: what about the
Content-type: text/htmlin the first output? Is that part of your bug report? I'm guessing that might just be part of your configuration; usually you do not see that when using drush with php-cli.Comment #3
mdlueck commented@greg.1.anderson: I did notice those extra two lines, X-Powered-By and Content-type. I was not bothered by their presence.
I am using Drush to run Drupal Cron via:
So, processing COLUMNS even earlier in the start-up process would be helpful for consistency. Would it be very hard to move that upwards in the Drush startup process?
Comment #4
greg.1.anderson commentedLogically, it makes sense to process COLUMNS with the drush bootstrap. The issue seems too minor to justify moving the COLUMNS initialization code out-of-sequence to the beginning of drush.php. I'm sort of neutral; maybe other maintainers would take a different view. You could always try it, see if it works okay and doesn't look too ugly, and post a patch.
Comment #5
moshe weitzman commentedI'm pretty neutral as well.
Comment #6
kotnik commentedHere's a patch that bumps width calculation.
Comment #7
greg.1.anderson commentedAt least wrap this code in its own function; that's too much to just drop into drush_main().
Comment #8
kotnik commentedCode separated.
Comment #9
moshe weitzman commentedNo longer applies cleanly. But yeah, lets just leave this code where it is. I do like its refactoring into own function though