I assume you're using bash on mac?
'ls' in fish is a shell function that calls 'command ls --color=auto
--indicator-style=classify -h $argv'. In bash, ls is an alias to 'ls
--color=auto'. The indicator-style apparently adds an extra slash even if
one is already present. Type 'command ls' to call the external command
directly, bypassing the shell function.
On Thu, Sep 29, 2011 at 22:12, Philip Ganchev <phil.ganc...@gmail.com>wrote:
> On Thu, Sep 29, 2011 at 9:04 AM, i...@whywouldwe.com
> <i...@whywouldwe.com> wrote:
> > When I do `ls -d1 */` on my mac I get
> > dir1/
> > dir2/
> >
> > but on an Ubuntu server (fish installed
> > via apt-get) I get
> > dir1//
> > dir2//
> >
> > Does anyone know how to fix this? Or
> > even where the problem lies?
>
> Could it be because Bash and Fish on Linux are configured to show all
> directories with a slash at the end, while your other shell on your
> Mac box is not? What happens if you do a simple "ls" on your Mac box?
>
> To avoid the extra slash, if you have a recent version of "GNU ls", you can
> do:
>
> ls -d1 --indicator-style=none
>
> Regards,
> Philip
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users