[SOLVED] rsync works differently under tcsh than bash?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On server "xanadu" (which is running Debian Linux 5.0, btw), Users' homedirs are located under /xanadu. So user "sue" will have a home of /xanadu/sue .
/home is actually a mount to a remote file server, so /home/sue isn't on the local disk at all.
SO I'm seeing that if Sue's shell is /bin/bash and "rsync -av --progress $HOME/ /home/$USER --exclude=.**" is executed, rsync copies all the new files in her home directory, excluding the dot files, to her dir on the remote mount as expected.
HOWEVER, if Sue's shell is /bin/tcsh, the same command won't work! I just get "rsync: No match."
What's going on? Why should rsync's behavior change depending on shell? I checked and the environment variables $HOME and $USER have the same values under either shell ("/xanadu/sue" and "sue", respectively).
I went this way because all the Users have, and need, tcsh for programs they run. But after playing with it, yes, it is easier to make a script executed with bash instead of converting my code to .tcsh. Just did that now and it's working fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.