Re: Switching from tcsh to bash ...



In article <tph-C02F06.10410729112005@localhost>,
Tom Harrington <tph@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>In article <0001HW.BFB1DB1600153A45F0335550@xxxxxxxxxxxxxxxxx>,
> Verne Arase <VerneA@xxxxxxxxx> wrote:
>
>> Well, I've finally bit the bullet, and am attempting a switch from tcsh to
>> bash, but have a few last tidbits I haven't been able to solve.
>>
>> 1. Certain commands like (like fink) allowed you to do command operand
>> completion.
>>
>> If you typed
>>
>> fink s<tab>
>>
>> it would complete to
>>
>> fink selfupdate
>>
>> Is something like this available in bash?
>
>I don't think so. That's a feature of tcsh, and I don't know of any
>bash equivalent.
>
>> 2. tcsh came with a set of aliases (currently defined in
>> /usr/share/tcsh/examples/aliases), but transliterating these into bash hasn't
>> worked for me. Specifically, I miss ll and would love to know how to get this
>> one into bash.
>
>For bash the syntax would be:
>
>alias ll='ls -l'
>

I don't know if you need it, but there's a script callled "cshtobash"
floating around the 'net that helped me with the switch. I ran it on
my old .cshrc and it took a bit of the pain away. I still had to manually
convert a few lines, but the script shortened the process.

Claude
.



Relevant Pages

  • Re: Help! bash annoyingly kills background processes when xterm is closed
    ... > bash, but I'm having a serious usability problem with bash that is ... > Let's say I have an xterm, and in the xterm I have a tcsh running. ... > Now let's say from the tcsh, I fire up an xemacs in the background, ...
    (comp.unix.shell)
  • Re: Switching from tcsh to bash as an interactive shell
    ... > the syntax and so have decided to switch to bash for both tasks. ... > tcsh for command-line use? ...
    (comp.os.linux.misc)
  • Re: bash & tcsh
    ... I use bash as the standard shell for all accounts on hp-ux, ... don't use tcsh. ... permissions to match the other system shells. ...
    (comp.sys.hp.hpux)
  • Re: TCSH and me!
    ... tcsh does have some interactive features that bash lacks. ... Spelling correction can be configured to work with file names, ...
    (comp.unix.shell)
  • Re: name completion in terminal?
    ... File completion is built into the c-shell but you have to | turn it on with "set filec". ... Actually, it's built into tcsh. ... Bash and zsh do file completion out of the box. ... Now that bash has the features that tcsh had back when I should probably switch but I still like the logic control syntax of tcsh over bash for scripting ...
    (Fedora)