<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.shells.fish.user">
    <title>gmane.comp.shells.fish.user</title>
    <link>http://blog.gmane.org/gmane.comp.shells.fish.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1968"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1963"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1959"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1957"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1955"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1954"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1951"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1950"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1949"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1948"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1941"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1933"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1932"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1931"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1930"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1926"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1925"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1924"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.shells.fish.user/1923"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1968">
    <title>Some patches to fish functions</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1968</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Sven Axelsson</dc:creator>
    <dc:date>2008-10-07T07:11:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1965">
    <title>Problems using fish as login shell on Mac OS X.</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1965</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Misha Gorodnitzky</dc:creator>
    <dc:date>2008-09-26T19:47:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1963">
    <title>last argument of previous command</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1963</link>
    <description>Hello,

Sorry if this question has been asked before;  it's very difficult 
to search the mailing list archives for something weird like "!$".

What is the equivalent of csh's "!$" expression (which evaluates to 
the last argument of the previous command) in fish?

For example:

csh% echo 1 2 3
1 2 3

csh% echo !$
3

When I try the above in fish, it says: The '$' begins a variable 
name. It was given at the end of an argument. Variable names may not 
be zero characters long. To learn more about variable expansion in 
fish, type “help expand-variable”.

Thanks for your consideration.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
Fish-users mailing list
Fish-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Suraj N. Kurapati</dc:creator>
    <dc:date>2008-09-21T02:28:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1959">
    <title>Inclusion of another file in a completion file</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1959</link>
    <description>Hi all, I'm writing completion for lp* tools from the cups suite and
I'm trying to include in each of the completion files a file
containing the common commands named lpcommon.fish:

---------------------------8&lt;---------------------------------
#function shared by all the lp* tools completions

function __lp_classes
    lpstat -c | sed -ne 's/^members of class \([^:]\+\):/\1/p'
end

function __lp_printers
    lpstat -p | sed -ne 's/^printer \([^ ]\+\).*/\1/p'
end

function __lp_jobs
    lpstat -o | cut -f1 -d" "
end
---------------------------8&lt;---------------------------------

The I try to load it using . in a concrete completion file like this:

-------------------------8&lt;-------------------
# completions for cups/lpstat 1.3.8

# load common functions
. lpcommon.fish

complete -c lpstat -s E -d "Forces encryption when connecting to the server"

complete -c lpstat -s R -d "Shows the ranking of print jobs"

complete -c lpstat -s U -x -a '(__fish_complete_users)' -d "[USERNAME] Specifies an alternate username"

complete -c lpstat -s p -f -a '(__lp_printers)' -d "[PRINTER(S)] Shows the printers and whether or not they are enabled for printing"

complete -c lpstat -s W -x -a "all completed not-completed" -d "[WHICH-JOBS] Specifies which jobs to show"

complete -c lpstat -s a -f -a "(__lp_printers)' -d "[PRINTER(S)] Shows the accepting state of printer queues"

complete -c lpstat -s c -x -a '(__lp_classes)' -d "[CLASS(ES)] Shows the printer classes and the printers that belong to them"

...
--------------------------8&lt;---------------------------------------

Unfortunately this doesn't seem to work, what I get for example with:
lpstat -p ...

stefano&lt; at &gt;geppetto ~&gt; lpstat -p .: Error encountered while sourcing file “lpcommon.fish”:
.: No such file or directory
fish: Unknown command “__lp_printers”
Standard input: __lp_printers
                ^
in command substitution
        called on standard input,


stefano&lt; at &gt;geppetto ~&gt; lpstat -p fish: Unknown command “__lp_printers”
Standard input: __lp_printers
                ^
in command substitution
        called on standard input,


So I don't know which fish to take now ;-).

Possible workarounds: to replicate all the function in each lp*
completion file, but I'd prefer to avoid this.

TIA (ye I'll post here completions when I'll be finished with 'em).

Friendly regards.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
_______________________________________________
Fish-users mailing list
Fish-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Stefano Sabatini</dc:creator>
    <dc:date>2008-09-11T21:22:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1957">
    <title>fish maintenance status</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1957</link>
    <description>Hi all,

fish is completely still since many months, no additions/fixes have
been done since February IIRC, and Axel, the main author and
maintainer is apparently missing from the list.

So I'd like to know which is the maintenance status of fish, if there
is someone currently involved in its development and if the apparent
stall where it currently seems to be is due to some temporary reason.

I like fish so much, it is a terrific usability improvement compared
to bash and other similar shells, and I think it would be very sad to
see it die for undermaintenance.

Unfortunately I can't dedicate myself to its development, but I'd like
to contribute completions for many of the commands I use everyday.

Friendly regards.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Stefano Sabatini</dc:creator>
    <dc:date>2008-09-06T08:33:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1955">
    <title>Completions for effectv</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1955</link>
    <description>Hi fishes,

attached completion file for effectv.

BTW I'm realizing that one of the problem with completions is that
they depend on the version of the program.

Ideally fish completions should be installed with every program
itself, but this is rather unrealistic.

A solution would be to detect somehov (parsing
--version/-V/-version/-v?) the version number of the program and then
eventually to report a warning.

Regards.
# completions for effectv 0.3.9 or similiar

complete -c effectv -f -a "QuarkTV" -d "Dissolves moving objects"
complete -c effectv -f -a "FireTV" -d "Clips incoming objects and burns it"
complete -c effectv -f -a "BurningTV" -d "Burns incoming objects"
complete -c effectv -f -a "RadioacTV" -d "Brightens moving objects and blurs it"
complete -c effectv -f -a "StreakTV" -d "Makes 8 afterimages"
complete -c effectv -f -a "BaltanTV" -d "Makes afterimages longer"
complete -c effectv -f -a "1DTV" -d "Grabs a horizontal line from video every 1/30 sec"
complete -c effectv -f -a "DotTV" -d "Converts the picture into a set of dots"
complete -c effectv -f -a "MosaicTV" -d "Censors incoming objects"
complete -c effectv -f -a "PuzzleTV" -d "Scrambles the picture"
complete -c effectv -f -a "PredatorTV" -d "Makes incoming objects invisible visibly"
complete -c effectv -f -a "SpiralTV" -d "Spiraling effect"
complete -c effectv -f -a "SimuraTV" -d "Color distortion and image mirroring"
complete -c effectv -f -a "EdgeTV" -d "Detects edge and display it like good old computer way"
complete -c effectv -f -a "ShagadelicTV" -d "Go back to swinging '60s"
complete -c effectv -f -a "NoiseTV" -d "Makes incoming objects noisy"
complete -c effectv -f -a "AgingTV" -d "Film-aging effect"
complete -c effectv -f -a "LifeTV" -d "Conway's life game with video input interaction"
complete -c effectv -f -a "TransFormTV" -d "Performs positional translations on images"
complete -c effectv -f -a "SparkTV" -d "Spark effect"
complete -c effectv -f -a "warpTV" -d "Goo'ing effect"
complete -c effectv -f -a "HolographicTV" -d "Holographic vision seen in Star Wars"
complete -c effectv -f -a "cycleTV" -d "Color cycling effect"
complete -c effectv -f -a "RippleTV" -d "Ripple mark effect"
complete -c effectv -f -a "DiceTV" -d "A 'dicing' effect"
complete -c effectv -f -a "VertigoTV" -d "Alpha blending with zoomed and rotated images"
complete -c effectv -f -a "DeinterlaceTV" -d "Deinterlacing video images"
complete -c effectv -f -a "nervousTV" -d "Realtime frame shuffling effect"
complete -c effectv -f -a "RndmTV" -d "Gives you a noisy picture in color or B/W"
complete -c effectv -f -a "RevTV" -d "Waveform monitor effect"
complete -c effectv -f -a "RandomDotStereoTV" -d "Makes random dot stereo stream from video input"
complete -c effectv -f -a "LensTV" -d "Old school demo lens effect"
complete -c effectv -f -a "DiffTV" -d "Hilights interframe differences"
complete -c effectv -f -a "BrokenTV" -d "Simulates broken TV"
complete -c effectv -f -a "WarholTV" -d "Hommage to Andy Warhol"
complete -c effectv -f -a "MatrixTV" -d "A Matrix like effect"
complete -c effectv -f -a "PUPTV" -d "Comes from \"Partial UPdate\", certain part of image is updated at a frame"
complete -c effectv -f -a "ChameleonTV" -d "Vanishing into the wall..."

complete -c effectv -o help -d "show usage information"
complete -c effectv -o device -r -d "[FILE] use device FILE for video4linux (default is /dev/video0)"
complete -c effectv -o channel -r -d "[CHANNEL] channel number of video source (default is 0)"

set __fish_effectv_norms "ntsc
pal
secam
pal-nc
pal-m
pal-n
ntsc-jp"
complete -c effectv -o norm -x -a '(echo $__fish_effectv_norms)' -d "[NORM] set video norm (default is ntsc)"

set __fish_effectv_freqs "argentina
australia
australia-optus
canada-cable
china-bcast
europe-east
europe-west
france
ireland
italy
japan-bcast
japan-cable
newzealand
southafrica
us-bcast
us-cable
us-cable-hrc"
complete -c effectv -o freqtab -x -a '(echo $__fish_effectv_freqs)' -d "[FREQUTAB] set frequency table"

complete -c effectv -o fullscreen -d "enable fullscreen mode"
complete -c effectv -o hardware -d "use direct video memory (if possible)"
complete -c effectv -o doublebuffer -d "enable double buffering mode (if possible)"
complete -c effectv -o fps -d "show frames/sec"
complete -c effectv -o size -x -a "WxH" -d "[WxH] set the size of capturing image to WxH pixels (default 320x240)"
complete -c effectv -o geometry -x -a "WxH" -d "[WxH] set the size of screen to WxH pixels"
complete -c effectv -o scale -x -d "[NUMBER] set the scaling. When the capturing size is set, the screen size is scaled by NUMBER"
complete -c effectv -o autoplay -x -d "[FRAMES] change effects automatically every FRAMES"

set __fish_effectv_palettes "grey
rgb24
rgb555
rgb565
yuv410p
yuv411p
yuv420p
yuv422
yuv422p"
complete -c effectv -o palette -x -a '(echo $__fish_effectv_palettes)' -d "[PALETTE] set the PALETTE of capturing device"

complete -c effectv -o vloopback -r -d "[FILE] use device FILE for output of vloopback device"
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Stefano Sabatini</dc:creator>
    <dc:date>2008-09-04T22:21:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1954">
    <title>open command in other shells</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1954</link>
    <description>how can i use fish's open command in other shells such as bash?


      


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Good Bad</dc:creator>
    <dc:date>2008-09-02T11:11:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1951">
    <title>something identical to bash's !$</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1951</link>
    <description>Hi,
I am completely new to fish and missing the good old history  
abbreviations lile !$
Is there a way to simulate this behavior?

Thanks in advance,
Alex.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Alex Greif</dc:creator>
    <dc:date>2008-08-30T07:43:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1950">
    <title>Problem with getopt</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1950</link>
    <description>Greetings fish-users mailling list!


I just started using Fish on Ubuntu and really like it. I am slowly
leaving my old love ZSH.

I am trying to make fish work on OpenBSD and would eventually make a port
of fish for OpenBSD. But I just ran into a problem regarding getopt(1).

Fish assumes that the GNU version of getopt(1) is present. This version
comes with several extra-"features". Including long-options as
documented here:

http://www.rt.com/man/getopt.1.html

The problem is that most *BSD stick to 'classic' version of getopt(1)
without adding extra features:

http://www.freebsd.org/cgi/man.cgi?query=getopt
http://www.openbsd.org/cgi-bin/man.cgi?query=getopt
http://netbsd.gw.com/cgi-bin/man-cgi?getopt

These versions treat all options as options to be parsed and do not
support long-options parsing. Which means every time fish uses a
GNU/getopt options I get something like this:

  getopt: unknown option -- Q
  getopt: unknown option -- o


I guess that removing -Q from fish scripts  is not a problem even though
I don't understand what it does, thanks to the 'clear' explanation in
the manual:

  -Q, --quiet-output
      Do not generate normal output. Errors are still reported by
      getopt(3), unless you also use -q.

The long-options removal should not be a problem technically, since it
is possible to replace them with short options. The only problem is that
short-options are not as nice and explicit as long-options.


I can provide a patch, but I would like to be sure of what I am doing
before doing anything ;-)

  Cheers,

</description>
    <dc:creator>Henry Precheur</dc:creator>
    <dc:date>2008-08-26T03:57:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1949">
    <title>Bug report: problem with creating alias</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1949</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Ovchinnikov George</dc:creator>
    <dc:date>2008-08-24T10:10:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1948">
    <title>Cannot use it as the default shell on Mac OS X</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1948</link>
    <description>A friend seems to have been able to set fish as his default shell, but  
I can't. When I try, this is what happens:

fish: Could not return shell to foreground
tcsetpgrp: Value too large to be stored in data type
fish: Could not return shell to foreground
tcsetpgrp: Value too large to be stored in data type
fish: Could not return shell to foreground
tcsetpgrp: Value too large to be stored in data type
fish: Could not return shell to foreground
tcsetpgrp: Value too large to be stored in data type
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
fish: Could not return shell to foreground
tcsetpgrp: Invalid argument
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish


And then no prompt. Any suggestions?

-bd

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Brian Donovan</dc:creator>
    <dc:date>2008-08-21T02:44:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1941">
    <title>Question about vi-mode</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1941</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Markus Banfi</dc:creator>
    <dc:date>2008-08-08T10:38:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1933">
    <title>Problem with sudo and Fish functions</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1933</link>
    <description>Hi Fish users, 

I am planning to switch to Fish. I converted a few of my bash aliases into fish functions. However, for some reason (unknown to me) it seems that within an (interactive) Fish shell I am unable to use sudo in combination with Fish functions. 

For example, in ~/.config/fish/config.fish I have defined the following "agi" function: 

function agi 
apt-get install $argv 
end
 
The following output explains my problem: 

fish&lt; at &gt;laptop ~&gt; agi install fish
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
fish&lt; at &gt;laptop ~&gt; sudo agi install fish
sudo: agi: command not found
fish&lt; at &gt;nerd-laptop ~&gt; sudo apt-get install fish
Reading package lists... Done
Building dependency tree       
Reading state information... Done
fish is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So "agi" only works without sudo. I searched Google, but did not find a solution. I tried to use the fish alias function instead but after restarting fish the output remained the same. I also added lines like "Defaults always_set_home" and "Defaults env_reset" to my /etc/sudoers file. However, that did not help either. 

Has someone experienced this before, and how could I resolve this?? 

Thanks in advance, 

Guido van Steen 

P.s. I use ubuntu 8.04. 



      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>gvsteen-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2008-08-07T12:30:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1932">
    <title>fish wiki</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1932</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Mike O'Connor</dc:creator>
    <dc:date>2008-08-05T00:59:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1931">
    <title>Fish root vs normal user - Debian Etch</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1931</link>
    <description>Hi,

I have installed fish from debian stable repository (etch) with the
root account.
I can launch fish when I'm logged as root but no 'normal' user can launch it...

Here the first errors lines.

fish: Unknown command "contains"
/usr/share/fish/config.fish (line 34):  if not contains /usr/xpg4/bin $PATH
                                                      ^
in . (source) call of file "/usr/share/fish/config.fish",
        called on standard input,

fish: Could not expand string "%fishd"
/usr/share/fish/config_interactive.fish (line 1): echo %fishd
                                                       ^
in . (source) call of file "/usr/share/fish/config_interactive.fish",
        called on line 85 of file "/usr/share/fish/config.fish",

in . (source) call of file "/usr/share/fish/config.fish",
        called on standard input,

Thanks to help me fixing this bug.

Sincerly,

</description>
    <dc:creator>Vincent Nguyen</dc:creator>
    <dc:date>2008-07-30T15:55:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1930">
    <title>BUG: mimedb hangs on certain XML mime files</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1930</link>
    <description>(I tried sending this mail before, but it doesn't seem to have gone
through, so I'll send it again and hopefully it'll reach the mailing
list this time.)

The mimedb application will hang when it encounters a certain type of
XML mime file. Here's an example of a file that screws up mimedb on
the latest release of fish:

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info"
type="application/x-ruby"&gt;
 &lt;!--Created automatically by update-mime-database. DO NOT EDIT!--&gt;
 &lt;sub-class-of type="application/x-executable"/&gt;
 &lt;sub-class-of type="text/plain"/&gt;
 &lt;comment xml:lang="en_GB"&gt;Ruby script&lt;/comment&gt;
 &lt;comment&gt;Ruby XML Template&lt;/comment&gt;
&lt;/mime-type&gt;

If I were to save that under /usr/share/mime/application/x-ruby.xml,
and then run "mimedb -d .rb", the task would hang.

The problem seems to be the ending &lt;comment&gt;, which doesn't have a
xml:lang attribute. If this comment is removed, or if the
language-less comment is placed *before* the en_GB comment, then
everything's fine. I'd guess it's a problem with the regular
expressions in mimedb.c

--
James

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>James Reeves</dc:creator>
    <dc:date>2008-07-26T15:03:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1926">
    <title>I've of a mind to ditch this "variables can't be incommands"</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1926</link>
    <description> &gt; $m/inst/stow/

I just want to cd there!  It's no different from, say, ~/inst/stow/ 
which means the same thing as $HOME/inst/stow/ !  Tab completion even 
works!  And I get:
fish: Variables may not be used as commands. Instead, define a function. 
See the
help section for the function command by typing “help function”.

I'm just going to patch fish to allow variables in commands (assuming 
it's simple enough), for my own use; I'll send the patch in case you 
feel like applying it.


Do note however that for programming -- not for convenient use -- there 
is a fairly easy solution that packages up the eval/function hackery 
(eval is at a great cost -- fish builtins/functions may be accidentally 
called, so you may actually not want to do this in a script) :

alias foo $dollars/using/expression
foo

If we wanted we could define

function run
   alias -l foo $argv[1]
   shift #wrong
   foo $argv
end

... except that there's no -l for alias so we're stuck with inlining its 
definitions... oh wait... there isn't even a -l for functions, and no 
lambda functions, they all have a global name!

And except that I couldn't find a way in fish's documentation to take a 
section of an array or in any way do something equivalent to bash's 
`shift` to get $argv[2..infinity]

I think it's plausible that:
$-in-command = warning in scripts = run = eval-ish
run = eval-ish (not at all equivalent to eval though, remember) = 
function or builtin or command or cd, in approximately that order.  And 
that's the problem, too, with using eval to implement it: the "command" 
could contain an evil string like 'begin;'.  However, I think we might 
be able to implement it as a function, using `type -t`.  Remember shells 
are not a macro expansion language!
command = you know = env
cd = you know
builtin = you know
function = er, is this possible? Probably to use "run" instead. Then 
(modulo one warning perhaps) we could define
function run; $argv; end

Maybe this will even be able to allow `run function --help` ;-)

-Isaac

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
</description>
    <dc:creator>Isaac Dupree</dc:creator>
    <dc:date>2008-07-12T11:00:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1925">
    <title>`command`</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1925</link>
    <description>Command doesn't need to be a builtin, if we can rely on common shell 
programs... it could be a Unix command (or for some reason we like to 
make things into shell functions, not sure why), just like `env` basically.

something like

function command -d 'Runs an executable (not a function or builtin)'
   # handle --help (see footnote [*])
   env -- $argv
end

Of course, if it was a script, it would use `exec`: command:
#!fish (or some such path, or /usr/bin/env fish, or just /bin/sh)
# handle --help (see footnote [*])
exec env -- $argv


#[*]why does help-handling have so much duplicate code
#across fish functions??  It's already led to a bug from copying
#this code and not changing the xxx in __fish_print_help xxx ...
if count $argv &gt;/dev/null
switch $argv[1]
case -h --h --he --hel --help
__fish_print_help command
return 0
end
end

-Isaac

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
</description>
    <dc:creator>Isaac Dupree</dc:creator>
    <dc:date>2008-07-06T15:10:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1924">
    <title>minor issues</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1924</link>
    <description>(now using the darcs version.. yay!)

my "open" help patch isn't yet applied, no problem for me because darcs 
lets me keep it...

I'm looking at the syntax hilighting for "status" and the short-options 
(-l, etc.) are marked red incorrectly.

I forgot that fish doesn't use "then" in if-statements.  But the error 
message was atrocious: it only appears in the case that the boolean 
expression turns out true, and it says "unknown command 'then'".  (At 
least I remembered to use 'end' instead of 'fi'!)  I think it's 
unreasonable to name a program 'then' or 'fi', so we don't need to 
support invoking them without using their path or `command then`.  But 
regardless, this is another case where we'd like that functionality 
where fish concurrently gives you messages in response to your editing, 
saying what you've probably done wrong... although that doesn't work for 
scripts.  And we need to figure out how to make `if --help` (and so on) 
work; without that, the "everything is a command" fish-philosophy is 
less useful.

Also... you know how annoying the unix overwriting semantics are?
(cmd &gt; file) when file already exists.  Perhaps that warning-message can 
appear for you if the 'file' exists already (which is subject to race 
conditions that bash's "noclobber" option probably isn't, but that's 
probably not much of a concern for someone at an interactive shell. 
It'd be nice to have such an option for use in scripts though, ... 
perhaps there's a unix command so that instead of
cmd &gt; file
one can use some command like
cmd | dd of=file
except, a command that actually exit-failures when the file exists 
already.  Not sure there is such a command.
(actually, "cmd &gt; file" doesn't overwrite device files like /dev/hda1... 
unix semantics can be really weird and I'm not sure how much it's 
reasonable to isolate the user from them, but at least we can educate 
the user about them and perhaps provide commands that make it more 
possible for some uses to say what they mean)

Perhaps I'll work on some of this sometime.

-Isaac

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
</description>
    <dc:creator>Isaac Dupree</dc:creator>
    <dc:date>2008-07-06T14:03:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1923">
    <title>fish_pager: function writembs called with null valuefor argument str.</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1923</link>
    <description>First, the bug:

This is the somewhat shorter version of the bug:
ls /etc/&lt;tab&gt;
&lt;any letter, I use q 'cause I'd like to quit the pager.&gt;

(Known to work, but try the above first.):
vim /etc/network/interfaces
:q!
&lt;Up Arrow&gt;
&lt;Tab&gt;
&lt;Delete "/interfaces"&gt;
&lt;Tab&gt;
&lt;Delete "/network/"&gt;
&lt;Tab&gt;
&lt;Hit space until you get to the end&gt;
q

This is on Debian, 2.6.18-6-486
fish, version 1.22.1

Now, the feature request that goes along with this bug:

It would be nice if the pager acted a bit like `less` or `more`,  
hitting 'q' should drop you out of the pager. It's somewhat  
counterintuitive to just start typing while there is a pager up,  
hitting q, leaving everything that was in the pager on the screen for  
reference so I can type would be awesome. I frequently delete the 'q'  
I type every time I open the pager by accident.

Also, this is my first time actually posting to the list, great job on  
fish, guys! It's a pleasure to use!

-Devon

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
</description>
    <dc:creator>Devon Stewart</dc:creator>
    <dc:date>2008-06-28T08:33:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.shells.fish.user/1920">
    <title>making fish scripts exit on unexpected errors?</title>
    <link>http://comments.gmane.org/gmane.comp.shells.fish.user/1920</link>
    <description>-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users
</description>
    <dc:creator>Dwayne C. Litzenberger</dc:creator>
    <dc:date>2008-06-26T05:45:58</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.shells.fish.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.shells.fish.user</link>
  </textinput>
</rdf:RDF>
