This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Cruor's profile picture

"" support for shell

Started by Cruor, 07 November 2012 - 07:05 PM
Cruor #1
Posted 07 November 2012 - 08:05 PM
You basicly run this code and it will allow you to use " " in shell. You can also use it with shell.run ofc.
IE:
cp "your file" yourFolder

That was easy.
http://pastebin.com/Bcz8GisW

Opimaly you have this as a startup program

Post bugs bellow, with reproduction steps.
(default list program hates long names and dosn't display stuff right, not my fault :P/>/>)
BigSHinyToys #2
Posted 07 November 2012 - 09:48 PM
This would be useful so we can have spaces in file and folder names. I support.
Cruor #3
Posted 07 November 2012 - 11:06 PM
This would be useful so we can have spaces in file and folder names. I support.
What i support? the code is right there o_o and it works with craftOS without any base edits o_O
immibis #4
Posted 07 November 2012 - 11:10 PM
This would be useful so we can have spaces in file and folder names. I support.
What i support? the code is right there o_o and it works with craftOS without any base edits o_O
Go create one without writing Lua code.

Edit: Apparently this feature is already in the game.

Edit 2: No it's not, I derped (again…). I support this feature being in the built-in shell. os.run is the wrong place to put it.
Sorroko #5
Posted 08 November 2012 - 05:21 AM
This would be useful so we can have spaces in file and folder names. I support.
What i support? the code is right there o_o and it works with craftOS without any base edits o_O
Go create one without writing Lua code.

Edit: Apparently this feature is already in the game.

Edit 2: No it's not, I derped (again…). I support this feature being in the built-in shell. os.run is the wrong place to put it.
It's the correct place to put it, when the built-in shell runs a program it calls os.run. So shell, shell.run and os.run then all support ""
BigSHinyToys #6
Posted 16 November 2012 - 11:11 PM
I misread this and thought it was suggestion for this functionality to be in craft OS. i derped hard.

Anyway now I know that is is and that it works is there any chance I can use in in Mouse File Browser. I need something exactly like this and it would interrogate easily. I would add your name to a list of contributers to mouse FB.

just so you know Mouse File Browser is an Open source , public domain project.
Cruor #7
Posted 16 November 2012 - 11:36 PM
I misread this and thought it was suggestion for this functionality to be in craft OS. i derped hard.

Anyway now I know that is is and that it works is there any chance I can use in in Mouse File Browser. I need something exactly like this and it would interrogate easily. I would add your name to a list of contributers to mouse FB.

just so you know Mouse File Browser is an Open source , public domain project.
Yah sure, i made it to learn patterns, i dont actualy have any use for it myself :)/>/>