5 ms·
Technically the chances of tilde not working are the same as cd behaving differently because they’re both shell builtins. I’m guessing (though admittedly not c
by pushpop 7y ago
Technically the chances of tilde not working are the same as cd behaving differently because they’re both shell builtins.
I’m guessing (though admittedly not checked) that both ~ and cd (without parameters) are defined in POSIX. In which case any edge case that doesn’t conform could reasonably be discounted with regards to the submission’s exercise.
- pushpop 7y agoI did some quick research on the POSIX thing and it looks like cd (without parameters) is defined in POSIX: https://www.unix.com/man-page/posix/1posix/cd/ https://www.unix.com/man-page/posix/1posix/cd/ Also I don’t know why many of my posts keep getting downvoted even when they’re factually accurate.