Jump to content




"" support for shell


  • You cannot reply to this topic
6 replies to this topic

#1 Cruor

  • Members
  • 413 posts
  • LocationNorway

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/>)

#2 BigSHinyToys

  • Members
  • 1,001 posts

Posted 07 November 2012 - 09:48 PM

This would be useful so we can have spaces in file and folder names. I support.

#3 Cruor

  • Members
  • 413 posts
  • LocationNorway

Posted 07 November 2012 - 11:06 PM

View PostBigSHinyToys, on 07 November 2012 - 09:48 PM, said:

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

#4 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 07 November 2012 - 11:10 PM

View PostCruor, on 07 November 2012 - 11:06 PM, said:

View PostBigSHinyToys, on 07 November 2012 - 09:48 PM, said:

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.

#5 Sorroko

  • Members
  • 87 posts

Posted 08 November 2012 - 05:21 AM

View Postimmibis, on 07 November 2012 - 11:10 PM, said:

View PostCruor, on 07 November 2012 - 11:06 PM, said:

View PostBigSHinyToys, on 07 November 2012 - 09:48 PM, said:

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 ""

#6 BigSHinyToys

  • Members
  • 1,001 posts

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.

#7 Cruor

  • Members
  • 413 posts
  • LocationNorway

Posted 16 November 2012 - 11:36 PM

View PostBigSHinyToys, on 16 November 2012 - 11:11 PM, said:

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 :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users