News for hackers. Stuff that matters.
Re:Why not a program or script put “ls” after I enter cd .. ... by sglane on Tuesday July 26, 2016 @09:34AM (#12165466)
The folder you just changed into has 30,000 files and you're ssh'd in over a slow network.
Re:Why not a program or script put “ls” after I enter cd .. ... by rajasimon on Tuesday July 26, 2016 @09:50AM (#12165575)
ha ha! I never expected that!
Re:Why not a program or script put “ls” after I enter cd .. ... by neeksHN on Tuesday July 26, 2016 @09:44AM (#12165531)
In Unix one could always write a function (not alias because it requires a parameter) that does this - http://askubuntu.com/questions/16106/how-can-i-create-an-ali.... I'm sure there's equivalents in Command Prompt/PowerShell as well.

Better for the shells' builtins to be simple and extendable - rather than be optionated.

Re:Why not a program or script put “ls” after I enter cd .. ... by detaro on Tuesday July 26, 2016 @09:38AM (#12165491)
It would create a lot of noise with large folders, but if you want that behavior you can just replace "cd" with an alias in your shell that does what you want.
Re:Why not a program or script put “ls” after I enter cd .. ... by rajasimon on Tuesday July 26, 2016 @09:51AM (#12165580)
can you explain bit more ? how ?
Re:Why not a program or script put “ls” after I enter cd .. ... by tsukikage on Tuesday July 26, 2016 @09:48AM (#12165559)
cd_(){

cd $*

ls

}

alias cd=cd_

hope that helps, have a nice day

Re:Why not a program or script put “ls” after I enter cd .. ... by rajasimon on Tuesday July 26, 2016 @09:53AM (#12165594)
oh wow... this is what I exactly look for...