On Wed, Jun 07, 2006 at 11:46:54PM +0200, steven mestdagh wrote: > Will Maier [2006-06-07, 11:25:37]: > > This release no longer assumes the presence of GNU/color ls > > (thanks to Aleksander). > > have you actually tried the ls aliases? they won't work since they > are not using -l to get a long listing (the -o option isn't really > needed). maybe try to have the author fix it?
Ah -- when I tested Fernando's patch, I neglected to add that '-l' would be necessary. When the %aliases simply didn't return (as opposed to erroring), I assumed things were fine. I see now (as you point out) that one more small fix is necessary. I'll submit another patch upstream. The diff pasted below should take care of it. Silly me... Thanks for your help! -- o--------------------------{ Will Maier }--------------------------o | jabber:[EMAIL PROTECTED] | [EMAIL PROTECTED] | | freenode:..............lt_kije | freenode:........#madlug,#wilug | *------------------[ BSD Unix: Live Free or Die ]------------------* --- ../ipython-old/patches/patch-IPython_iplib_py Wed Jun 7 11:14:28 2006 +++ patches/patch-IPython_iplib_py Wed Jun 7 17:50:00 2006 @@ -1,24 +1,21 @@ -$OpenBSD: patch-IPython_iplib_py,v 1.1.1.1 2006/05/28 21:59:20 steven Exp $ ---- IPython/iplib.py.orig Mon Jan 30 07:34:22 2006 -+++ IPython/iplib.py Sun May 28 15:49:04 2006 -@@ -576,15 +576,15 @@ class InteractiveShell(object,Magic): - # long ls - 'll ls -lF', - # color ls -- 'lc ls -F -o --color', -+ #'lc ls -F -o --color', - # ls normal files only -- 'lf ls -F -o --color %l | grep ^-', -+ 'lf ls -F -l %l | grep ^-', - # ls symbolic links -- 'lk ls -F -o --color %l | grep ^l', -+ 'lk ls -F -l %l | grep ^l', - # directories or links to directories, -- 'ldir ls -F -o --color %l | grep /$', -+ 'ldir ls -F -l %l | grep /$', - # things which are executable -- 'lx ls -F -o --color %l | grep ^-..x', -+ 'lx ls -F -l %l | grep *$', - ) +$OpenBSD$ +--- IPython/iplib.py.orig Wed Jun 7 17:48:10 2006 ++++ IPython/iplib.py Wed Jun 7 17:49:40 2006 +@@ -566,13 +566,13 @@ class InteractiveShell(object,Magic): + # --color switch out of the box + if 'bsd' in sys.platform: + ls_extra = ( # ls normal files only +- 'lf ls -F -o %l | grep ^-', ++ 'lf ls -lF -o %l | grep ^-', + # ls symbolic links +- 'lk ls -F -o %l | grep ^l', ++ 'lk ls -lF -o %l | grep ^l', + # directories or links to directories, +- 'ldir ls -F -o %l | grep /$', ++ 'ldir ls -lF -o %l | grep /$', + # things which are executable +- 'lx ls -F -o %l | grep ^-..x', ++ 'lx ls -lF -o %l | grep ^-..x', + ) + auto_alias = auto_alias + ls_extra elif os.name in ['nt','dos']: - auto_alias = ('dir dir /on', 'ls dir /on',