0
votes
0answers
17 views

different interactive and non-interactive shells

A user account has it's shell defined in passwd file as bash. I would like to change this user account's shell to tcsh for non-interactive jobs (like ssh ), but keep interactive shell to bash. Is ...
0
votes
1answer
90 views

bash + run command in tcsh from bash

when I run from bash shell the command: bash for i in 1 2 3 ; do echo $i ; done 1 2 3 but when I switch to tcsh and want to run: tcsh bash -c for i in 1 2 3 ; do echo $i ; done i: -c: ...
10
votes
3answers
7k views

Force SSH to use a specific shell

Is there any way to force SSH to use a particular shell on the remote end, regardless of what the user's default shell is? I've tried solutions akin to: ssh host.domain.com /bin/bash -c ...
2
votes
2answers
2k views

Recursive cp copies folder contents instead of folder on OS X

In Terminal (using bash and tcsh) cp -r copies the contents of a folder instead of the folder if the folder argument has a / at the end. Given the following structure: folderA |-fileA |-fileB ...