[darcs-users] darcs-2 help behavior

Jason Dagit dagit at codersbase.com
Mon Nov 3 02:45:57 UTC 2008


On Sun, Nov 2, 2008 at 6:45 PM, Trent W. Buck <trentbuck at gmail.com> wrote:
> John Clayton <john at fivesquaresoftware.com> writes:
>
>> Just installed darcs 2.1 and now I get this on quitting each
>> invocation of darcs help command_name:
>>
>> Command not found:
>>    ["less -X"]
>>
>> In my environment I have PAGER='less -X' because I like to leave stuff
>> on the screen for reference.

Similarly, I get:
Command not found:
   ["less "]

>
> Use PAGER=less LESS=X.

It would seem that in my case I have export PAGER='less '

I just changed that to deleted the space.

>> Obviously this is not interacting well with darcs' use of less. Does anyone
>> know a way to fix this?
>
> If convention is actually to allow PAGER to contain arguments, extend
> Darcs to apply something like words :: String -> [String] to $PAGER
> before executing it.

It seems quite reasonable to me to allow arguments using words or do
white space stripping.  Does this have the potential to cause
problems?  I guess the most obvious downside is that it gives some
expectation to users that we'll handle commands appropriately across
platforms.  What do others think?

Thanks,
Jason


More information about the darcs-users mailing list