View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016307||CentOS-7||tcsh||public||2019-08-01 18:57||2019-08-01 19:19|
|Target Version||Fixed in Version|
|Summary||0016307: cd /lkjsdf ; source junkfile logs me off|
|Description||Running tcsh 6.18.81 Astron|
From command line and from inside tcsh scripts
cd /lkjsdf ; source junkfile
Logs me off if lkjsdf does not exist. Works fine for existing directories.
junkfile can be empty or contain anything, it is properly executed and THEN
user is logged out.
Contruct is used as a way to created on the fly prompts depending upon directory one cd's into.
Usually cd is aliased to ' cd \!* ; source prompt '
where prompt is a tsch script of arbitrary complexity.
Using this alias any cd into a non existent directory causes an immediate logout.
Homer W. Smith
CEO Lightlink Internet
|Steps To Reproduce||Just type it at the tcsh prompt and what it log you out.|
|Tags||No tags attached.|
Using csh rather than tcsh, the line gives an abort.
Notice that junkfile needs to be set with a full path, because the cd changes the working directory.
cd /directory ; source /root/junkfile
If directory does not exist, the junk file is executed properly but then signed off.