"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/variables.at" between
tcsh-6.22.02.tar.gz and tcsh-6.22.03.tar.gz

About: Tcsh is a version of the Berkeley C-Shell, with the addition of: A command line editor, command and file name completion, listing, ...

variables.at  (tcsh-6.22.02):variables.at  (tcsh-6.22.03)
skipping to change at line 565 skipping to change at line 565
AT_SETUP([$ home]) AT_SETUP([$ home])
AT_DATA([home.csh], AT_DATA([home.csh],
[[echo $?home [[echo $?home
(echo $home; echo ~) | uniq | wc -l | tr -d ' \t' (echo $home; echo ~) | uniq | wc -l | tr -d ' \t'
set home=/foo set home=/foo
printenv HOME printenv HOME
setenv HOME /bar setenv HOME /bar
echo $home echo $home
]]) ]])
AT_CHECK([export HOME=$(getent passwd $(id -nu) | awk -F: '{ print $(NF - 1) }') AT_CHECK([
; tcsh -f home.csh], , case "$(uname -s)" in
Darwin)
HOME=$(dscl . read "/Users/$USER" NFSHomeDirectory | awk '{ print $NF }')
;;
*)
HOME=$(getent passwd $(id -un) | awk -F: '{ print $(NF - 1) }')
;;
esac;
export HOME;
tcsh -f home.csh
], ,
[1 [1
1 1
/foo /foo
/bar /bar
]) ])
AT_CHECK([(unset HOME; tcsh -f -c 'echo $?home; printenv HOME')], 1, AT_CHECK([(unset HOME; tcsh -f -c 'echo $?home; printenv HOME')], 1,
[0 [0
]) ])
skipping to change at line 674 skipping to change at line 685
echo >> spool echo >> spool
echo >> spool echo >> spool
]]) ]])
AT_CHECK([tcsh -f mail.csh], , AT_CHECK([tcsh -f mail.csh], ,
[0 [0
]) ])
AT_CLEANUP AT_CLEANUP
AT_SETUP([$ cdtohome]) AT_SETUP([$ cdtohome])
AT_CHECK([export HOME=$(getent passwd $(id -nu) | awk -F: '{ print $(NF - 1) }') AT_CHECK([
; tcsh -f -c 'cd'], 0) case "$(uname -s)" in
Darwin)
HOME=$(dscl . read "/Users/$USER" NFSHomeDirectory | awk '{ print $NF }')
;;
*)
HOME=$(getent passwd $(id -un) | awk -F: '{ print $(NF - 1) }')
;;
esac;
export HOME;
tcsh -f -c 'cd'
], 0)
AT_CLEANUP AT_CLEANUP
AT_SETUP([$ noimplicithome]) AT_SETUP([$ noimplicithome])
AT_CHECK([tcsh -f -c 'unset cdtohome; cd'], 1, , [cd: Too few arguments. AT_CHECK([tcsh -f -c 'unset cdtohome; cd'], 1, , [cd: Too few arguments.
]) ])
AT_CLEANUP AT_CLEANUP
VAR_UNSET([matchbeep]) VAR_UNSET([matchbeep])
VAR_UNSET([nobeep]) VAR_UNSET([nobeep])
VAR_UNSET([noclobber]) # Functionality tested with "Command execution" VAR_UNSET([noclobber]) # Functionality tested with "Command execution"
VAR_UNSET([noding]) VAR_UNSET([noding])
 End of changes. 2 change blocks. 
4 lines changed or deleted 24 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)