On 8/24/06, Martin Baehr <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 24, 2006 at 12:41:11AM +0200, Axel Liljencrantz wrote:
> > Reading the bash documentation, it seems that the history builtin in
> > bash doesn't really do anything that isn't easily done either using
> > array splicing or a simple pipeline. But it makes a lot of sense to be
> > Posix compatible whenever the alternative isn't significantly better.
>
> except that a history command does not seem to be part of posix:
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_13
>
> i don't care either way, i just want to avoid something being done for
> posix sake when it isn't actually posix.
My bad.
>
> on the other hand it is interresting that kill is in the list.
> speaking of kill, how do i kill a job based on the job number?
Kill job with job id 3:
kill %3
>
> > cat /dev/zero | less &
> > kill (jobs -p %1)
>
> didn't really work. for some reason i had to use kill -9,
> in bash the same job was killable just fine.
>
In the case above, you could also have written
kill %cat
though that may be ambigous. You can use tab completion to find out if
there is more than one match for a given process expansion.
> > It would be really easy to provide this type of functionality built
> > into fish through some magical ([{\{REGEX\}}]) syntax, like e.g. bash
> > does, but what would be the point? Save maybe three key strokes, and
> > lose the consistency and small size of the language.
>
> i am more concerned about execution speed.
> starting 3 programs for every keypress can be quite slow...
Right. A keypress handler is one of the few situations where this
might be an issue. What exactly do you have in mind to do?
>
> > > btw: quote from a friend who likes lisp a lot:
> > > fish and SBCL with linedit running side-by-side...
> > > I'm in tab-completion heaven
> > > (SBCL is steel banks common lisp)
> > Yay! :-)
> > Does that mean I will be getting a completion file for SBCL?
>
> i don't know, i'll ask him.
>
> greetings, martin.
> --
> cooperative communication with sTeam - caudium, pike, roxen and unix
> offering: programming, training and administration - anywhere in the world
> --
> pike programmer travelling and working in europe open-steam.org
> 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/
>
--
Axel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users