On Sun, Nov 2, 2008 at 6:45 PM, Trent W. Buck <[EMAIL PROTECTED]> wrote:
> John Clayton <[EMAIL PROTECTED]> 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
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to