Tcsh enhancement suggestion

Tcsh enhancement suggestion

Post by Laurent Duperv » Sat, 07 Aug 1993 04:43:16



I use NCFTP instead of ftp when I'm ftp'ing.  One of the nice things about it
is that when I want to change directories all I need to do is to type the name
of that directory.  Could something similar be added to tcsh (or is it already
being considered)?

--
Laurent Duperval, B. Sc.  | All opinions expressed herein are fictitious.
                          | Any resemblance to actual opinions, living or


I don't understand why people break up and then get back together.
It's like going to the fridge, taking a carton of milk that has gone
bad, then saying: "I'll put it back and see if it's better tomorrow."
                -Larry Miller or Jerry Seinfeld (please mail in your vote)

 
 
 

Tcsh enhancement suggestion

Post by Michael Fu » Sat, 07 Aug 1993 07:54:10



>I use NCFTP instead of ftp when I'm ftp'ing.  One of the nice things about it
>is that when I want to change directories all I need to do is to type the name
>of that directory.  Could something similar be added to tcsh (or is it already
>being considered)?

A problem might be resolving ambiguity:  If I keep the source code to
the program "foo" in the directory "foo", what happens if I just type
"foo"?  Do I run the program or change into the directory?  I suppose
this could be configured with "set cdbeforeexec" or some such.  In
that case, then, how would I run "foo"?  By using the program's
path?  Some other syntactic notation?  Don't know if it would be
worth the trouble....
--
Michael Fuhr                                  "A good philosopher is one who

                                                                 -Edward Abbey

 
 
 

Tcsh enhancement suggestion

Post by Laurent Duperv » Sat, 07 Aug 1993 10:21:35



-> >I use NCFTP instead of ftp when I'm ftp'ing.  One of the nice things about it
-> >is that when I want to change directories all I need to do is to type the name
-> >of that directory.  Could something similar be added to tcsh (or is it already
-> >being considered)?

-> A problem might be resolving ambiguity:  If I keep the source code to
-> the program "foo" in the directory "foo", what happens if I just type
-> "foo"?  

Actually, it would depend on the path variable.  If . appears at the
beginning, you'd change directories.  If not, the program would be executed.
That would probably incite more people to stick it at the end of the path
instead of the beginning (like they should anyway).

--
Laurent Duperval, B. Sc.  | These opinions are up for sale.  We will start
                          | the bidding at $1,000,000...  Do I hear $500,000?


Until the color of a man's skin
Is of no more significance
Than the color of his eyes
It is a war
                    -Bob Marley, "War"

 
 
 

Tcsh enhancement suggestion

Post by Shriram Krishnamurt » Sat, 07 Aug 1993 14:37:41



> Don't know if it would be
> worth the trouble....

Not to criticize you personally, but it's not, fur crissake.  Three
keystrokes (`c', `d', ` ').  It can't take anyone *that* long to type?
Completion and other such features are one thing, but this is taking
it a little too far.
 
 
 

Tcsh enhancement suggestion

Post by Michael Fu » Sat, 07 Aug 1993 18:12:50




>-> A problem might be resolving ambiguity:  If I keep the source code to
>-> the program "foo" in the directory "foo", what happens if I just type
>-> "foo"?  
>Actually, it would depend on the path variable.  If . appears at the
>beginning, you'd change directories.  If not, the program would be executed.
>That would probably incite more people to stick it at the end of the path
>instead of the beginning (like they should anyway).

Yeah, I suppose path would handle it.  Well heck, maybe it's not
such a bad idea after all....
--
Michael Fuhr                               "I believe in nothing that I cannot

                                            rest is only hearsay."
                                                                -Edward Abbey
 
 
 

Tcsh enhancement suggestion

Post by Oyvind Yrk » Sat, 07 Aug 1993 18:06:18



Quote:>I use NCFTP instead of ftp when I'm ftp'ing.  One of the nice things about it
>is that when I want to change directories all I need to do is to type the name
>of that directory.  Could something similar be added to tcsh (or is it already
>being considered)?

Well, you could make your own by using another "return" key, e.g. F1
and the bindkey command.
The F1 key on my sun generates the escape sequence ^[[224z,
so writing

prompt> bindkey -s ^[[224z '^acd ^e^m'

will do the trick provided you have not bound ^a, ^e or ^m to something else.

Ex.
promtp> bin<F1>
and tcsh changes this too
prompt> cd bin<Return>

______________________________________________________________________________

Schlumberger Geco-Prakla                 +47 4 50 65 95
Stavanger, Norway

 
 
 

Tcsh enhancement suggestion

Post by Jim Barbour (now I am he » Sun, 08 Aug 1993 00:19:35



>I use NCFTP instead of ftp when I'm ftp'ing.  One of the nice things about it
>is that when I want to change directories all I need to do is to type the name
>of that directory.  Could something similar be added to tcsh (or is it already
>being considered)?

Along similar lines, I've been wanting to add a hook to tcsh, which
executes a script if "command not found."  This could be conditional
if a shell variable is set.

--
Jim Barbour             National Oceanic and Atmospheric Administration (NOAA)

Voice:(303) 497-5262    3100 Marine St. Room 248
FAX:  (303) 497-7256    Boulder, Co. 80303

 
 
 

1. x86 boot enhancements, link enhancements 2/11

#2  2.5.8.boot.vmlinuxlds
============================================================
- i386/Makefile remove bogus linker command line of -e stext
- Fix vmlinux.lds so vmlinux knows it loads at 0x100000 (1MB)
- Fix vmlinux.lds so we correctly use startup_32 for our entry point
- Make startup_32 global

diff -uNr linux-2.5.8.boot.boot_params/arch/i386/Makefile linux-2.5.8.boot.vmlinuxlds/arch/i386/Makefile
--- linux-2.5.8.boot.boot_params/arch/i386/Makefile     Thu Apr 12 13:20:31 2001

 LD=$(CROSS_COMPILE)ld -m elf_i386
 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
-LDFLAGS=-e stext
+LDFLAGS=
 LINKFLAGS =-T $(TOPDIR)/arch/i386/vmlinux.lds $(LDFLAGS)

 CFLAGS += -pipe
diff -uNr linux-2.5.8.boot.boot_params/arch/i386/kernel/head.S linux-2.5.8.boot.vmlinuxlds/arch/i386/kernel/head.S
--- linux-2.5.8.boot.boot_params/arch/i386/kernel/head.S        Wed Mar 20 07:18:31 2002

  *
  * On entry, %esi points to the real-mode code as a 32-bit pointer.
  */
-startup_32:
+ENTRY(startup_32)
 /*
  * Set segments to known values
  */
diff -uNr linux-2.5.8.boot.boot_params/arch/i386/vmlinux.lds linux-2.5.8.boot.vmlinuxlds/arch/i386/vmlinux.lds
--- linux-2.5.8.boot.boot_params/arch/i386/vmlinux.lds  Sun Mar 10 20:09:08 2002

  */
 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH(i386)
-ENTRY(_start)
+physical_startup_32 = startup_32 - 0xC0000000;
+ENTRY(physical_startup_32)
+PHDRS
+{
+       text PT_LOAD AT(0x100000);
+
+}
 SECTIONS
 {

        *(.text)
        *(.fixup)
        *(.gnu.warning)
-       } = 0x9090
+       } :text = 0x9090

   _etext = .;                  /* End of text section */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. ls files newer than some date

3. x86 Boot enhancements, build enhancements 6/9

4. ADSL Multipath routing

5. tcsh watch suggestion

6. IP Tables port filtering

7. tcsh: suggestion for new feature - select file by date

8. remove CDE front panel permanently

9. /bin/tcsh vs /usr/local/bin/tcsh

10. Solaris2.4/tcsh-6.05/NIS+: `tcsh' with funny terminal output

11. #!/bin/tcsh vs. #! /bin/tcsh

12. tcsh watch cmd (was Re: conv. zsh <- tcsh)