I don't see any reason to convert to Bash.  watch(1) (on my system) executes 
its argument with "sh -c" unless the -x option is given in which case it uses 
exec(2).  Read the man page.

One options is to make whatever function you want to watch into a command (fish 
script in a file).  Make sure that the fish script is either in your PATH or 
its path is explicitly specified.

Another option is to do something like this as an example.  Note that "history" 
is a function.
    watch -x fish -c "ls; history"

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to