On 9/3/06, Martin Baehr <[EMAIL PROTECTED]> wrote: > On Sun, Sep 03, 2006 at 10:10:31PM +0200, Axel Liljencrantz wrote: > > I though ls was clever enough to autodetect these things. > > that would be to clever, because when i pipe ls output through less i > _do_ want to see the types. > > > There is a C function called isatty that tests if a file descriptor is > > a tty. I'll try to find a commandline program that does the same > > thing. If one doesn't exist, I guess it should be written. > > hmm, i thought bash had a way to test interactivity in a script, but in > the manpage i can only find descriptions of the difference in behaviour. > > > >it seems that fish is getting randomly confused about which function to > > >use... > > Much like Philip, I can't reproduce this from the description given > > above. Can you give me a series of steps to follow to get this > > behaviour? > > i get it reproducably like this: > > take any function: > > functions open > function open --description Open\ file\ in\ default\ application > mimedb -l -- $argv > end > > create a local version: > > vi ~/.fish.d/functions/open.fish > > then see what's inside: > > functions open > function open > echo foo > end > > and then look again: > > functions open > function open --description Open\ file\ in\ default\ application > mimedb -l -- $argv > end
Managed to reproduce it, and then fix it. I'll do a new release soon with a fix for this. Thanks for the report. > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer travelling and working in europe open-steam.org > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
