On 8/24/06, Martin Baehr <[EMAIL PROTECTED]> wrote: > On Thu, Aug 24, 2006 at 11:18:47PM +0200, Axel Liljencrantz wrote: > > > 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. > > don't worry, it is actually worse, > i was idly looking at the commands listed on that page, and noticed one > command i had never seen: fc > > can you guess what this does? > http://www.opengroup.org/onlinepubs/009695399/utilities/fc.html
Let's see... fc could be an abbrevation for 'frocess cistory', perhaps? :-) Seriously, though, the fc builtin does not seem to have a very nice syntax. The default action is to edit the previous command in an external editor. When exactly is that useful? The more I think about it, the more I feel that the history maps pretty nicely into a variable. Unlike e.g. random vs. $RANDOM, this is actually something that makes sense to wrap into a variable. Like $status, you can pretty much pretend that this is a regular variable, and that it is updated by the shell between the execution of commands. > > > > 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 %3 > > i tried that. it fdoes not work, > well, it does, but only if i use kill -9 > > something else is going wrong here. > ahh, if the job is stopped it does't receive the signal. > ok, bad testing on mybehalf, sorry. > > > 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? > > well, i am still thinking about how to implement some form of > incremental search. i will start experimenting as soon as the history > command is implemented. Of course. How silly of me. > > btw: a feature like history -w would be nice too, to save the history, > especially when it comes to crashes where history would be lost. That's true. But wouldn't it make more sense to do this automatically, maybe once every ten commands, and whenever a new command is entered and no save has been done in an hour or something? > > 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
