ihcho
(Il-Hyun Cho)
February 8, 2021, 7:50am
1
Hello,
After upgrading Fedora 33 from 31, I cannot enter csh or tcsh.
I can only use bash shell, but any c-shell script cannot be compiled (csh -f a script).
The error message is as follow,
Division by 0.
Now I upgrade 34 but the problem is not solved.
I removed tcsh and reinstall but the broblem is not solved.
How can I solve it ?
Many thanks,
Il-Hyun
1 Like
mattdm
(Matthew Miller)
February 8, 2021, 8:44am
2
Can you post an example script which shows the problem? Does the problem occur if you create a new account with default dot files and run a minimal test there?
4 Likes
simmon
(Great People OS)
February 8, 2021, 11:33am
3
you can install tcsh and easily change shell
also run “chsh” command and will be use tcsh shell.
[root@nalkal simmon]# chsh
Changing shell for root.
New shell [/bin/bash]: /bin/tcsh
Shell changed.
[root@nalkal simmon]# exit
exit
[simmon@nalkal ~]$ su
암호:
[simmon@nalkal simmon]# echo $shell
/bin/tcsh
reboot or relogin…will be use tcsh shell !
Have a nice day!
1 Like
ihcho
(Il-Hyun Cho)
February 9, 2021, 3:49am
4
Dear Matthew Miller,
Thank you for the comment.
With the existing account and root,
[ihjo@localholt ~] tcsh
Division by 0.
[root@localholt ~] tcsh
Division by 0.
But with a new account by useradd -m -s /bin/tcsh ihcho
It seems to be working, but there’s no .tcshrc file on the home directory.
I will try to source a scrip in the old .tcshrc line by line.
Thank you for the comment.
ihcho
(Il-Hyun Cho)
February 9, 2021, 3:50am
5
Dear Great Peoples OS,
I did it several times.
The error message was “Division by 0.”.
Thank you for the comment.
ihcho
(Il-Hyun Cho)
February 9, 2021, 4:30am
6
The following script gives “Division by 0.”.
In Fedora 31, there was no problem.
######### set default top level for ALL SSW (top=SSW_XXX) ####################
set upall=($upallinstr)
set lowall=($SSW_INSTR_ALL)
while ($#upall >= 1)
set inname=$upall[1]:t
set inpath=“/”$lowall[1]:t
set mission=“/”$lowall[1]:h
if ($mission == $inpath) then
set mission=“”
endif
eval setenv “SSW_$inname” “$SSW$mission$inpath”
shift lowall
shift upall
end
simmon
(Great People OS)
February 9, 2021, 4:41am
7
What are you talking about?
1 Like
vgaetera
(Vladislav Grigoryev)
February 9, 2021, 5:07am
9
You can safely rename/remove that file.
You don’t really need it to use the shell.
1 Like
ihcho
(Il-Hyun Cho)
February 9, 2021, 6:29am
10
I commented above three lines.
Now it is working well.
Thank you for your helpful comments.
simmon
(Great People OS)
February 9, 2021, 6:56am
11
What does this shell script have to do with the behavior and use of the tcsh shell?
ihcho
(Il-Hyun Cho)
February 9, 2021, 8:14am
12
I don’t know well.
But they give the message “Division by 0.” which did not appear in Fedora 31.
system
(system)
Closed
March 9, 2021, 8:14am
13
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.