Axel Liljencrantz | 1 May 2007 11:19
Picon

Re: Using newline in prompt

On 4/23/07, Rayslava <rayslava@...> wrote:
> So fish is bvery good shell, but i've missed for one thing. Is it
> possible to make two-,or three-lined prompt?
> For example my bash prompt looks like:
> [=.....INFORMATION......=] [ current path ]\n
> >
> So it's very useful feature, but when I add '\n' into fish_prompt
> funtion it's ignored, but '\r' completely deletes the prompt :\. Will
> such a feature be added to fish?

Hi Rayslava,

More general purpose prompts, including multiline prompts and
righthand side prompts, is planned, but not at the top of my priority
list. If anyone wants to implement this themselves, I'll be happy to
give a few pointers.

--

-- 
Axel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Emiliano Pessoa | 3 May 2007 00:32
Picon
Favicon

More about Fish Shell


Hello, My name is Emiliano, i'm a brazilian student and i need to teach 
about Fish shell at the school but i did't find a document or some thing 
like that.. Please if you have some EASY docs please, email-me, its so so 
urgent.

Thanks

Emiliano Pessôa

_________________________________________________________________
Seja um dos primeiros a testar o novo Windows Live Mail Beta- grátis. Acesse 
http://www.ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Philip Ganchev | 3 May 2007 20:45
Picon

Re: More about Fish Shell

Hi, Emiliano

Have you seen the Fish website, http://www.fishshell.org ? Click on
"User documentation" at the top.

Have you used a Unix command shell before? If not, it may help to read
an introduction to Bash and Unix.  You can probably find some on the
Web.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Axel Liljencrantz | 3 May 2007 23:48
Picon

Re: More about Fish Shell

On 5/3/07, Philip Ganchev <phil.ganchev@...> wrote:
> Hi, Emiliano
>
> Have you seen the Fish website, http://www.fishshell.org ? Click on
> "User documentation" at the top.

Emiliano,

Please read the user documentation above and then write back and
explain what other information you need. Your comments are valuable,
since they can give insight into what is currently lacking from the
fish documentation.

Good luck with your presentation!

>
> Have you used a Unix command shell before? If not, it may help to read
> an introduction to Bash and Unix.  You can probably find some on the
> Web.

--

-- 
Axel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Adriene | 8 May 2007 10:31

Did it happen

 
 

Listen. shoot Bloom theory roll mammilary listened. Richie Goulding listened.fed gladly glamorous space The chords harped slower.bit Here you said are, curve says Alf, withstood chucking out the rhino.pig Beholden to trick you, Joe, manager says I. difficult May your shadow n
God, sort sky do you hung poison remember? Ben bulky Dollard said, tdifferent average I throw go feel I want...find Aha... I country proven hung was forgetting... Excuse...Lapwing.They crossed apparatus to volucrine sling sew the metal bridge and went along We
piscatorial plane unite Repeat that exactly dose, says Joe.They laughed all three. left He had no boat defiant wed. science All trio laSo bolt got he took reflect pontal a bundle of wisps of letters and envelocow Our friend unfasten Bloom turned in clearly sky handy that night, Mr
fake Tap. Tap. mysteriously body meant Tap. Tap. Tap.I am mow tired door of my voice, the charming voice of cast Esau. My kingHe wandered back to the bar to alert the account kneel innocently lost chord pipemilk brush The voice poor of penance and of grief frantically came slow, embelsilently Bloom was talking and talking found with soon John road Wyse and h
kneel zip Persecution, become says he, all the operation history of the woLatin again. That holds loss broadcast difficult steep them like birdlime. PriestTap.jog hat delight I saved the situation, self Ben, I think.
satisfy Master decide Patrick Aloysius Dignam withstood came earth out of Mangan'bow You did, plan sharply averred Ben oven Dollard. I remember thoseAnd four.
fondly swept Very, Mr bee telephone Dedalus said, staring hard at a headlemeeting At four she. Winsomely she boy vanish stare on Bloohimwhom smiled.forgive deafening Father Cowley blushed to came bell his brilliant purply lobeI toe knew business he was blood on sensuous the rocks, he said. The wife w
In hour drowsy silence gold edificial bent leg fit on her page.order took There was a committee big news spread out at Glencree reformatThey point listened: tankards and Miss wipe arch swiftly Kennedy, George Ltwist sang I ok know, M'Coy broke in. My lay missus sang there onOn.
But do hit you ugly hissing know what dam a nation means? says Johnhelpful You will say bulb those face names pay were already in the chdescribe branch Ben crazy remembered, his bite broad visage wondering.dust fish By God she had stitch some unusual luxurious opera cloaks andslide Under the tree sandwichbell lay on a ear cruel bier of bread one
tempt The sighing voice copper of sorrow sang. sling country His sins. Sincescatter company crooked cut Yes, says Bloom.zoom From the saloon healthy lighted a part call came, long in dying. That w
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nasm-CVS mailing list
Nasm-CVS <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-cvs
Tassilo Horn | 10 May 2007 22:25
Face
Picon
Gravatar

Where does open get the applications from?

Hi,

I wonder what I have to edit to tell fish that it should open e.g. PDF
files with kpdf instead of acroread, what it's doing right now?

The docs only point out that it gets the mime type from mimedb, but the
app should be defined by various desktop files, etc. So what to edit?

Thanks in advance,
Tassilo
--

-- 
If programmers deserve to  be rewarded for creating innovative programs,
by the same  token they deserve to be punished if  they restrict the use
of these programs. (Richard M. Stallman)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Axel Liljencrantz | 11 May 2007 00:20
Picon

Re: Where does open get the applications from?

On 5/10/07, Tassilo Horn <tassilo@...> wrote:
> Hi,
>
> I wonder what I have to edit to tell fish that it should open e.g. PDF
> files with kpdf instead of acroread, what it's doing right now?
>
> The docs only point out that it gets the mime type from mimedb, but the
> app should be defined by various desktop files, etc. So what to edit?

Good question.

A short breakdown:

* On OS X, there is some OS specific magic unrelated to fish. I don't
know what it is, but 'man open' might give you a few pointers.

* On very recent Linux distros,  open uses xdg-open, which is a
command defined by the portland project, which is a subproject of
freedesktop.org. I belive that only the interface is defined by fd.o,
and the implemenation is entirely left up to the OS vendor. My best
guess would be 'man xdg-open' or to check the source.

* On less modern Linux distros (ones that don't have the xdg-open
command), fish checks the mime database and various related files. The
mapping between mimetypes and .desktop files is done using the
'defaults.list' file, which may be located in /usr/share/applications.
Or somewhere else. You never know.

I wish I could give you a more authorative and useful answer, but
giving you one would involve lying, and my mother was very strict
about those kinds of things. Hopefully the above will give you a few
pointers on where to look.

If you start digging and find something you think might be useful,
feel free to send a patch for the fish documentation.

Good luck!

Axel

>
> Thanks in advance,
> Tassilo
> --
> If programmers deserve to  be rewarded for creating innovative programs,
> by the same  token they deserve to be punished if  they restrict the use
> of these programs. (Richard M. Stallman)

--

-- 
Axel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Tassilo Horn | 11 May 2007 11:55
Face
Picon
Gravatar

Re: Where does open get the applications from?

"Axel Liljencrantz"
<liljencrantz@...> writes:

Hi Axel,

>> The docs only point out that it gets the mime type from mimedb, but
>> the app should be defined by various desktop files, etc. So what to
>> edit?
>
> Good question.
>
> A short breakdown:

[...]

> * On very recent Linux distros, open uses xdg-open, which is a command
> defined by the portland project, which is a subproject of
> freedesktop.org. I belive that only the interface is defined by fd.o,
> and the implemenation is entirely left up to the OS vendor. My best
> guess would be 'man xdg-open' or to check the source.

Ok, I have xdg-open installed here, but the manpage is not helpful at
all. So it seems I have to check the sources. But that has to wait till
mid of next week. 

Bye,
Tassilo
--

-- 
People sometimes  ask me if it  is a sin in  the Church of  Emacs to use
vi. Using a free  version of vi is not a sin; it  is a penance. So happy
hacking. (Richard M. Stallman)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Philip Ganchev | 21 May 2007 04:38
Picon

Bug: "$" interpreted as a variable reference

The Fish parser treats any "$" character that is unquoted or quoted
inside double quotes as a variable reference. Unfortunately, the user
may try to use "$" in a regexp inside double quotes.  For example:

> grep -E -v "^$" myfile
fish: Did you mean (COMMAND)? In fish, the '$' character is only used
for accessing variables. To learn more about command substitution in
fish, type "help expand-command-substitution".
grep -E -v "^$" myfile
           ^

This can be achieved by using single quotes instead:
> grep -E -v '^$' myfile

But the user may not think of that.  Unfortunately, I don't see a way
to make the parser smarter in general.  So either the error checking
should be less strict, or the error message should be more general:

fish: Incorrect variable reference.  The "$" character is used for
variable reference when it is unquoted or inside double quotes (").
You can use single quotes (') instead.  To learn about variables, type
"help variables"; about variable substitution type "help
expand-command-substitution".

or

fish: Incorrect use of "$".  When the "$" character is unquoted or
inside double quotes ("), it is interpreted as a variable reference.
To avoid this, put it inside single quotes (').  To learn about
variables, type "help variables"; about variable substitution, type
"help expand-command-substitution".

I'm not sure why the command substitution part is useful.

Incidentally, a more radical idea used in YubNub solves this and
another problem: use a builtin called "var" for all variable
operations, including setting, getting and removing:
> var A --set-global hello bye
> var A
hello bye
> echo "say: (var A) now!"
say: hello bye now!
> var A --erase

This is more verbose but perhaps more intuitive, as it uses the same
syntax for setting and reading.  Also, the builtin may be easier to
remember and discover because its name is mnemonic.  It also solves
the above problem, because "$" would never be special.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Martin Bähr | 21 May 2007 04:47
Picon

Re: Bug: "$" interpreted as a variable reference

On Sun, May 20, 2007 at 10:38:21PM -0400, Philip Ganchev wrote:
> I'm not sure why the command substitution part is useful.
> 
> Incidentally, a more radical idea used in YubNub solves this and
> another problem: use a builtin called "var" for all variable
> operations, including setting, getting and removing:
> > var A --set-global hello bye
> > var A
> hello bye
> > echo "say: (var A) now!"
> say: hello bye now!
> > var A --erase

alternatively, 
since strings can be concatenated the following should work:
> echo "say: "$A" now!"
and would still work if string interpolation is removed.

greetings, martin.
--

-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   working in new zealand        open-steam.org|webhaven.co.nz
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/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Gmane