> echo "$FISH_VERSION"
2.3.1

An example script, which always prints fish_greeting when I execute it:

#!/usr/bin/fish
echo "What's your name?"
read name
echo "Hello, $name!"

On Sat, Jul 23, 2016 at 9:13 PM, Kurtis Rader <kra...@skepticism.us> wrote:

> On Sat, Jul 23, 2016 at 8:19 PM, Andrew Toskin <summerfallsa...@gmail.com>
> wrote:
>
>> I'm using fish 2.3.1, in GNOME Terminal 3.20.2, on Fedora 24 (64-bit).
>>
>> I'm writing a simple script that uses the read command to get info from
>> the user before continuing. Every time the script runs, when it gets to the
>> first "read" line, it prints the "$fish_greeting" variable, which I find
>> a little distracting.
>>
>> I do not have this issue with another, much more complicated script I
>> wrote, perhaps because all the read commands are in excessively deeply
>> nested switch cases and conditionals...
>>
>> For my simple script, the only workaround I've been able to figure out is
>> to set fish_greeting to an empty string -- however, even when I use set
>> --local, that seems to permanently remove the fish greeting for all
>> future sessions, not just when running the script. Some users of my script
>> may not like that. Is this a bug in fish? Is there another way to avoid
>> print the fish_greeting in a script?
>>
>
> it might be a bug in fish but that seems unlikely if you're running a
> recent fish version. The fish_greeting is only shown when a new interactive
> shell is started just before the first prompt is displayed. Can you provide
> a script that would allow someone else to recreate the problem? Also, what
> does "echo $FISH_VERSION" output? if you're running a fish version older
> than 2.3.0 I'd want to know if you can reproduce the problem with 2.3.0 or
> 2.3.1.
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to