Unclear. And I believe this post is currently NAA, not because it is in the form of a question, but because it is not really saying what to do. (It shouldn't be converted to a comment because, even as a request for information, it's not really all that clear.)

@EliahKagan some of those comments are rather confusing... it would be much better if the commenters wrote answers in some cases there, and I take this as a sign it can and should be answered. But maybe we can edit in something about how they are trying to get to a supported release, because as written it's like "I upgraded to an unsupported release and I have a problem on that unsupported release"

@Zanna People are voting to close that. I think it should just be answered. It's clearly not specific to an EOL release and it seems valuable to me. Many users don't realize that (a) common commands can be shadowed by shell functions, and (b) someone who defines shell functions can easily fool the user. Imagine if type had also been defined as a shell function, to report that cd (and type itself) weren't shell functions.

I retracted my close vote for the following reason: The OP uses 16.10, fine but this can happen on any Ubuntu version and i think other Users could benefit from this question to be answered. — Videonauth11 secs ago

@EliahKagan I voted to leave it open earlier... I see I am the only one to do so so far! Hopfully muru will post an answer

@EliahKagan I guess that is the idea, but I don't agree that it is a duplicate. It might be reasonable to close it as a duplicate of the post that my post refers to. Maybe David Foerster feels that Panther's answer to my question is better than their answer to the other question. But it is a bit confusing for the OP...

You where the victim of a prank, possibly done by your coworkers or someone who had access to your machine.
Bash functions can shadow the original shell built-in commands as you could see as you did type cd. I has shown you that it first found a function which is possibly declared somewhere.
cd...

I'm back, for the moment. What's the purpose of these find and grep commands? To find where the cd function was defined? That's not likely to succeed because there are effectively an unlimited number of ways to write a cd function that prints that output. The function doesn't have to contain the text it prints. It can be decoded from base64, patched together, etc.

Even if all that were addressed, which I don't think is possible, this method could only then hope to e slightlhy more reliable than using shell builtins like type because even assuming the file still exists, is still readable, and you're looking in the right place, someone who can define a shell function to override type can surely also define one to override find and grep.

@Videonauth I'm not saying you should say more. I'm suggesting you might consider saying less than you currently are saying. But if you do want to give examples of commands that will occasionally find the function, then I recommend that you avoid presenting them as reliable. In particular, you might want to replace "Best way to find is" with something like "One approach that may sometimes work".

The way you've shown is potentially valuable, but I suspect it will find the function definition far less frequently than other methods, such as running bash with strace to see that files it actually sources, or searching for text that looks like the beginning of a function definition for cd rather than text that looks like that particular body.

I'm not saying you need to talk about that stuff, only that I recommend against presenting any method that is less likely to succeed as the "Best way". (Those other methods are going to be var from perfect, too.)

@Zanna $ is a metacharacter in BRE (-G or no dialect flag) and ERE (-E), as well as in PCRE (-P). It matches the empty string at the end of a line. For example, grep -o '..$' <<<abcde outputs de.

@Zanna Yeah, it's just for tag badges. Also, I think you can also lose them if your answer is made CW, since tag badges are based only on non-CW answers. None of this applies to non-tag badges, which generally survive the reversal of whatever event caused them to be earned.

yesterday I seemed to lose 1 point when I hadn't downvoted an answer. I assumed this was because an answer I had downvoted that was deleted had been undeleted, but I didn't find anything in "recently undeleted", and I can't think of any other explanation. I guess I might have imagined it though...

@Zanna When I look at your reputation tab, I don't see any loss events, suggesting that it is from a downvote you had cast (since voting is private and rep changes to the voter aren't shown to other users).

@EliahKagan nothing illuminating in the reputation tab. I downvoted some answers yesterday and today, but they've all been deleted (I assume) because all the numbers are round

I assume the change must have come from an event relating to an old post, like when a post that is not recent is undeleted or deleted

if someone right now upvotes, unupvotes, accepts or unaccepts your post, or a user is removed, that shows as a new change, but deletions of posts you suggested edits on, downvoted, or had received votes on (excluding the +3 & sixty day exception and of course CW posts) change your rep but don't show any new events, iirc

All I remember is, it was ending with 08, then it went down to 07 for no visible reason, and now the last number is still 7, but my rep changes since then are round numbers

anyway shrug I am vaguely curious about it, but I am more interested in lots of other things :)

> - VTR stands for "vote to resolve." It means to upvote an answer so that the question no longer appears on the list of unanswered questions. This should only be done if it seems like the post really answers the question. Sometimes someone makes a CW post and suggests it be VTRed. (This is often done for abandoned questions that [can still be useful][2] to the community.)

I don't know if it's used to mean this anymore, but I remember people (I think especially in this room) have sometimes used "VTR" to stand for "vote to resolve" where there's a solved question but the answer isn't upvoted, so the question will be "resolved" out of the unanswered questions list if it gets votes.

It is inadvisable to download files from untrusted sources and especially to run them as root without knowing exactly what they will do. Please be careful and be sure you know what you are doing! — Videonauth16 secs ago

Recent duplicate answers by the same author, all posted over a short time, which also appear to be totally wrong, and it's unclear to me to what degree they are attempting to address the specific details of the questions, but I'm not sure it's strictly NAA. They are identical to one another except that there is a small typo that appears in only two of the three: