Re: [tcsh] disabling autologout?
On Mon, Apr 20, 1998 at 09:01:17PM -0700, Joel Klecker wrote: At 12:17 -0400 1998-04-20, Peter S Galbraith wrote: $ cd [tab] - shows and completes to directory names only $ latex [tab] - shows and completes to .tex files only $ emacs -[tab] - shows and completes to available options for that command. Who would want to live without it? Can bash be taught to do this? It would be great. bash can't, but zsh (a bourne shell derivative like bash) has programmable completion that is even more powerful than what tcsh has. bash can't do it yet (as of version 2.01.1 or 2.02); however, according to to their recent posting on comp.os.linux.announce: A Peek at the Future Things under consideration for bash-2.03 (or whatever the next version is named) are o An implementation of programmable completion for the bash readline interface So, there is hope yet! ;-) Anthony -- Anthony Fok Tung-LingCivil and Environmental Engineering [EMAIL PROTECTED] University of Alberta, Canada [EMAIL PROTECTED] Keep smiling! *^_^* Come visit Our Lady of Victory Camp -- http://olvc.home.ml.org/ or http://www.ualberta.ca/~foka/OLVC/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
On Mon, Apr 20, 1998 at 09:01:17PM -0700, Joel Klecker wrote: At 12:17 -0400 1998-04-20, Peter S Galbraith wrote: $ cd [tab] - shows and completes to directory names only $ latex [tab] - shows and completes to .tex files only $ emacs -[tab] - shows and completes to available options for that command. Who would want to live without it? Can bash be taught to do this? It would be great. bash can't, but zsh (a bourne shell derivative like bash) has programmable completion that is even more powerful than what tcsh has. I would welcome anyone to post a zsh configuration file even more powerful than tcsh's /usr/doc/tcsh/examples/complete.tcsh I'd give it a try if I didn't need to do the programming myself. -- Peter Galbraith, research scientist [EMAIL PROTECTED] Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546 ** New E-Mail. [EMAIL PROTECTED] is cut off ** -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Keith Beattie wrote: Oh, minor stuff really. The completion stuff mentioned earlier in this thread, prompt settings (~ when in your home dir, a shorter HH:MM time format), other little things I can't remember right now. I'm sure I could get bash to do most of it, if I sat down and figured it out... I doubt you can. Not sure about the prompt, but bash doesn't have smart filename completion. You could look at zsh, which is a ksh derivative with all the above features. -- see shy jo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
At 12:17 -0400 1998-04-20, Peter S Galbraith wrote: $ cd [tab] - shows and completes to directory names only $ latex [tab] - shows and completes to .tex files only $ emacs -[tab] - shows and completes to available options for that command. Who would want to live without it? Can bash be taught to do this? It would be great. bash can't, but zsh (a bourne shell derivative like bash) has programmable completion that is even more powerful than what tcsh has. -- Joel Espy Kleckermailto:[EMAIL PROTECTED]http://web.espy.org/ Debian GNU/Linux Developer...http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Adam Shand wrote: PERSONAL_BIAS Use bash (instead of tcsh) and ssh (for connecting to remote hosts). /PERSONAL_BIAS is is there really any advantage to using bash over tcsh? I much prefer tcsh for interactive use. Having smart completion is the best thing since sliced bread! e.g. $ cd [tab] - shows and completes to directory names only $ latex [tab] - shows and completes to .tex files only $ emacs -[tab] - shows and completes to available options for that command. Who would want to live without it? Can bash be taught to do this? It would be great. -- Peter Galbraith, research scientist [EMAIL PROTECTED] Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
I much prefer tcsh for interactive use. Having smart completion is the best thing since sliced bread! hmm, i'm didn't know that you could do all these things. i use simple file name completion all the time, but the below stuff is sorta neat. $ cd [tab] - shows and completes to directory names only $ latex [tab] - shows and completes to .tex files only where does it get the relevant suffix from? /etc/mime.types? $ emacs -[tab] - shows and completes to available options for that command. this would be very cool as well. Who would want to live without it? Can bash be taught to do this? It would be great. how do you turn these features on? they don't appear to be enabled by default? adam. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Adam Shand wrote: PERSONAL_BIAS Use bash (instead of tcsh) and ssh (for connecting to remote hosts). /PERSONAL_BIAS running a couple of days behind here but ... are there reasons for your personal bias? i definately agree with using ssh for connecting to hosts (auto setting of display variable, encryption, encrypted tunnelling of x sessions, rsa authentications etc etc). is is there really any advantage to using bash over tcsh? i use tcsh because it's what i learned first and now it's familiar... but i've been looking for a reason to be bothered swapping over to bash. can you convince me? :) How 'bout I just tell you why I prefer bash these days. (I'm not interested in starting or participating in a religious war :) I (only recently) have started to prefer bash over tcsh for two main reasons: 1) I find myself working on several different OSs these days: WinNT, Solaris, AIX, HP-UX, FreeBSD, Linux, etc. Being able to have the same shell everywhere is nice and I have found bash to be the easiest to install on all these types of machines. (autoconf is a beautiful thing!) 2) Bash is Bourne Shell compatible. This means that if I'm in a situation where I cannot install bash, for whatever reason, I'm not strangled by being unfamiliar with sh-flavor command line behavior. (I've found that an unconfigured csh is about as friendly as unconfigured ksh - both of which are found standard on most machines, whereas bash and tcsh are usually only installed by people like me.) This point is even stronger for scripts. Very few scripts I find are written in csh, so being familiar with Bourne syntax is more productive. (csh is supposed to be more C-like in it's syntax - I find this very deceptive. csh is about as C-like as French is English-like. Yes, there are similarities but they are very different languages. With bash around making sh as user-friendly as tcsh, I might as well forget csh and learn sh. (This is similar to why I think Java/C can now replace C++, but I digress. :)) Of course this topic cannot be mentioned without the following reference: http://language.perl.com/versus/csh.whynot While there are still a few things I prefer about tcsh, I figure bash can probably to it all, I just need to figure it out... Reading the rest of this thread just might be what I need! Regards, Keith ps - for those unfamiliar with the history of Unix shells: sh = Bourne Shell csh = C Shell (not sh compatible, a C-like shell) ksh = Kron Shell (an extension of sh) tcsh = Tenex(?) C shell (an extension of csh) bash = Bourne Again Shell (a sh compatible extension of sh with ksh, csh and tcsh functionality influence) LocalWords: Kron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
1) I find myself working on several different OSs these days: WinNT, Solaris, AIX, HP-UX, FreeBSD, Linux, etc. Being able to have the same shell everywhere is nice and I have found bash to be the easiest to install on all these types of machines. (autoconf is a beautiful thing!) this is one of the main motivators for me also. the fact that bash comes with just about everything, and is easily installed (or already installed by the geek before you) on what's left. 2) Bash is Bourne Shell compatible. This means that if I'm in a situation where I cannot install bash, for whatever reason, I'm not strangled by being unfamiliar with sh-flavor command line behavior. again a good reason. also the functionality of bash functions seems to have well surpassed tcsh's aliases. (I've found that an unconfigured csh is about as friendly as unconfigured ksh - both of which are found standard on most machines, no kidding ... i learned on csh (sunos 4.1.1) ... talk about a horrible experience ... it drove me to tcsh. This point is even stronger for scripts. Very few scripts I find are written in csh, so being familiar with Bourne syntax is more yack. only program in sh/bash ... please. it's so much nicer anyway i'm not sure why anyone would want to write csh scripts. Of course this topic cannot be mentioned without the following reference: http://language.perl.com/versus/csh.whynot yep. a must read if you are tempted by the evil empire. While there are still a few things I prefer about tcsh, I figure bash can you expound? i'm curious. LocalWords: Kron eh? what is this? adam. Internet Alaska - 4050 Lake Otis Adam Shand(v) +1 907 562 4638 Anchorage, AlaskaSystems Administrator (f) +1 907 562 1677 - http://larry.earthlight.co.nz -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Hi, might as well forget csh and learn sh. (This is similar to why I think Java/C can now replace C++, but I digress. :)) Ugh...I shudder the thought. I like C++ :)(although, I can understand why) ksh = Kron Shell (an extension of sh) LocalWords: Kron The correct name is Korn, not Kron. Take a look at the man pages for ksh. :-) -Ossama -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout? revisited.
Sorry about this, but I was out and missed the beginning, How do you disable Autologout in tcsh (which I MUST use to be script compliant with the rest of the facility). I tried login.defs and a few other things. NADA. Thanks (now back to our regularly schedualed discourse on shells) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Adam Shand wrote: While there are still a few things I prefer about tcsh, I figure bash can you expound? i'm curious. Oh, minor stuff really. The completion stuff mentioned earlier in this thread, prompt settings (~ when in your home dir, a shorter HH:MM time format), other little things I can't remember right now. I'm sure I could get bash to do most of it, if I sat down and figured it out... LocalWords: Kron eh? what is this? Sorry, just a typo - I mistyped Korn and somehow between ispell, a slow network and elm, we all got a little confused. :) Regards, Keith -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout? revisited.
dobrin wrote: Sorry about this, but I was out and missed the beginning, How do you disable Autologout in tcsh (which I MUST use to be script compliant with the rest of the facility). I tried login.defs and a few other things. NADA. This is funny. I just resisted the temptation to whine about operator overloading in C++ in this thread. :) unset autologout Add it to your ~/.tcshrc or type in at the shell prompt. HTH, Keith ps -For future reference the mailing list archives are kept at http://www.debian.org/Lists-Archives/ although the searching capability appears to be down at the moment. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Oh, minor stuff really. The completion stuff mentioned earlier in this thread, prompt settings (~ when in your home dir, a shorter HH:MM time format), other little things I can't remember right now. I'm sure I could get bash to do most of it, if I sat down and figured it out... sounds like most of the stuff i like ... i was just curious if there were any really cool features of tcsh i'd been missing out on! Sorry, just a typo - I mistyped Korn and somehow between ispell, a slow network and elm, we all got a little confused. :) laugh ... i know the feeling :) adam. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
PERSONAL_BIAS Use bash (instead of tcsh) and ssh (for connecting to remote hosts). /PERSONAL_BIAS running a couple of days behind here but ... are there reasons for your personal bias? i definately agree with using ssh for connecting to hosts (auto setting of display variable, encryption, encrypted tunnelling of x sessions, rsa authentications etc etc). is is there really any advantage to using bash over tcsh? i use tcsh because it's what i learned first and now it's familiar... but i've been looking for a reason to be bothered swapping over to bash. can you convince me? :) adam. Internet Alaska - 4050 Lake Otis Adam Shand(v) +1 907 562 4638 Anchorage, AlaskaSystems Administrator (f) +1 907 562 1677 - http://larry.earthlight.co.nz -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
On 15 Apr, Sudhakar Chandrasekharan wrote: Hi, How do I diable autologout in tcsh? The man page tells me how I can enable it. The problem seems to be that even under X my DISPLAY is not being set and tcsh running under xterm keeps logging me out after a period of inactivity. S. Put unset autologout in your .login. -- Brian -- Mechanical Engineering [EMAIL PROTECTED] Purdue University http://www.ecn.purdue.edu/~servis -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [tcsh] disabling autologout?
Sudhakar Chandrasekharan wrote: Hi, How do I diable autologout in tcsh? The man page tells me how I can enable unset autologout it. The problem seems to be that even under X my DISPLAY is not being set I don't see how these two problems could be related but... If your DISPLAY is not being set for local xterms make sure you are setting it using setenv instead of set in your login shell. For remote xterms, look into the REMOTEHOST environment variable. PERSONAL_BIAS Use bash (instead of tcsh) and ssh (for connecting to remote hosts). /PERSONAL_BIAS HTH, Keith -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]