On Sat, Aug 19, 2017 at 9:02 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:

> On Sat, Aug 19, 2017, at 09:59, Mark Volkmann wrote:
> > Removing the parens causes it to output "at line number status
> current-line-number".
> >
> > On Sat, Aug 19, 2017 at 8:23 AM, Greg Reagle <greg.rea...@umbc.edu>
> wrote:
> >> On Sat, Aug 19, 2017, at 08:37, Mark Volkmann wrote:
> >>  > I'm doing this inside a function:
> >>  > echo at line number (status current-line-number)
> >>  > But no matter where I put this in my function, it always outputs 2.
> >>  > Am I using it incorrectly?
> >>
> >>  Take it out of the parentheses.
>
> Your interpretation of my advice is too literal.  Think.  status is a
> command, use it like a command, but it apparently does not play well
> with command substitution.
>
> echo you are at line number
> status current-line-number
>

Okay, I see that works.
But I wonder why current-line-number behaves differently than
current-function and current-filename.
I can use parens around those to output them with an echo.

-- 
R. Mark Volkmann
Object Computing, Inc.
------------------------------------------------------------------------------
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