Tic-80: Shouldn't "cd.." (without a space) be a valid command?

Created on 22 Aug 2020  路  5Comments  路  Source: nesbox/TIC-80

I don't know if this annoys other people, but because I use cd.. all the time in the windows console, the force of habit makes me keep getting the _"unknown command"_ error in TIC-80. It gets a bit annoying over time...

You think you could add support for it?
Thanks. :)

console

Most helpful comment

I'm not sure how that's relevant, though. I'm not under the impression TIC-80 aims to accurately mimic any specific system. dir isn't officially a unix command either. And neither are cls and del.

All 5 comments

cd.. without space is not an official syntax: https://ss64.com/nt/cd.html

You should learn to type the space correctly instead. All cd commands on unix systems require the space indeed.

I'm not sure how that's relevant, though. I'm not under the impression TIC-80 aims to accurately mimic any specific system. dir isn't officially a unix command either. And neither are cls and del.

It's relevant in that cd.. is an artifact of how MSDOS implemented command-line parsing, whereas most other OSs/shells, unix or not, will require a space between a command and its parameters.

@raydeejay, I don't mean to be rude, but you're not telling me anything fundamentally different from what I've already been told. Which is irrelevant all the same if TIC-80 isn't aiming to accurately mimicking any specific systems or standards, which seems to be the case, given that the existing commands are a mix. It really doesn't matter if it came from a bug or a hack or whatever. It's there, and personally I even think it's quite a good idea (makes frequent navigating easier), and I'm just putting it on the table here. Personally, I think TIC could even support cd\ as well. I would even vote for an md command, which is in some ways a more handy version of mkdir, but that would grow the list of commands and I don't know if that's acceptable.

Don't get me wrong, I'm ok with this being rejected, if it gets to that. It's no big deal. I just don't find your points relevant to whether or not it should be a thing in TIC-80, since it's seemingly not trying to be unix. With that in mind, what I find relevant is stuff like:

  • is it a good idea? Handy or useful?
  • is it within the acceptable scope of TIC-80?
  • is it easy, or at least feasible to implement?
  • if it requires a bit of a hack to implement, would that be a problem in this case?

Personally, I quite like it. I took a cursory look at the code, and I think it might be easily added as a single separate command that maps to cd .., or something like that.

Seems cd.. is an invalid command.

Was this page helpful?
0 / 5 - 0 ratings