Page 1 of 2

Network file naming

Posted: 10 Jun 2015, 22:37
by Ed_P
When Porteus creates duplicate network file names it creates them with a space in the name which makes deleting them almost impossible. A different naming convention would be useful.

Code: Select all

guest@porteus:~$ ls /etc/NetworkManager/system-connections/
QuickMoose  QuickMoose\ 1  QuickMoose\ 2
guest@porteus:~$ 

Re: Network file naming

Posted: 10 Jun 2015, 23:02
by brokenman
When Porteus creates duplicate network file names
Porteus doesn't create them. By the looks of your output you are using NetworkManager which is responsible. In any case can you explain why it is almost impossible to delete a filename with a space?

Re: Network file naming

Posted: 11 Jun 2015, 00:22
by Ed_P
brokenman wrote:By the looks of your output you are using NetworkManager which is responsible.
Ok, but I didn't install it, it came with Porteus.
In any case can you explain why it is almost impossible to delete a filename with a space?
This experience leads me to that conclusion: http://forum.porteus.org/viewtopic.php? ... 550#p28134

Re: Network file naming

Posted: 11 Jun 2015, 06:05
by francois
@ed:

This is not the answer to brokenman's question. You pointed to the solution to the problem.

Though it is permitted in windows syntax, I guess the answer is that file names with spaces are not permitted for the Unix or Linux environment.

I imagine that there could be a more refined answer.

Re: Network file naming

Posted: 11 Jun 2015, 16:03
by Ed_P
francois wrote: I guess the answer is that file names with spaces are not permitted for the Unix or Linux environment.
Oh, they are permitted, that's the problem. Once permitted they are difficult to remove. Yes, I found a way to fix my problem but I'm not the only newbie that will encounter the problem, and having a function of Porteus create the problem doesn't seem to be the best course of action. imo

Re: Network file naming

Posted: 11 Jun 2015, 18:06
by Bogomips
Ed_P wrote:but I'm not the only newbie
Bit too long in the tooth, considering .. :D

Normally use a file manager to delete the video files with names containing spaces, or rm with tabbing to completion, but suppose network files are different.

Re: Network file naming

Posted: 11 Jun 2015, 18:17
by francois
There is not much on the net about the subject. All I could find is:
http://unix.stackexchange.com/questions ... a-filename

The reason is largely historical - WAY back in the mists of time spaces were not allowed in filenames, so spaces were used as keyword / filename separators. Future shell interpreters had to be reverse-compatible with old scripts, and thus we are stuck with the headache we have today

Re: Network file naming

Posted: 13 Jun 2015, 15:31
by Ed_P
Thank you for the confirmation francois. Maybe it will help support getting Porteus to not create file names with them. Especially since file managers don't normally delete files named that way. :no:

Re: Network file naming

Posted: 01 Jul 2015, 06:49
by long123
This is not the answer to brokenman's question. You pointed to the solution to the problem.

Though it is permitted in windows syntax, I guess the answer is that file names with spaces are not permitted for the Unix or Linux environment.

Re: Network file naming

Posted: 01 Jul 2015, 12:01
by Bogomips
long123 wrote:Though it is permitted in windows syntax, I guess the answer is that file names with spaces are not permitted for the Unix or Linux environment.
IMHO one cannot make such a blanket statement. It may perhaps hold for network filenames, but not generally. Most of the videos I download come from the windoze environment, and the overwhelming majority have filenames with embedded spaces. Have no trouble dealing with them
  • Accessing from CLI using tab completion
  • Accessing from a file manager like Nautilus
Even a shell script has been able to handle such filenames. 8)

Re: Network file naming

Posted: 01 Jul 2015, 15:51
by Ed_P
long123 wrote:This is not the answer to brokenman's question. You pointed to the solution to the problem.
In that your link seems to have little bearing on this discussion your posting appears to be SPAM.

Re: Network file naming

Posted: 01 Jul 2015, 16:10
by donald
@ Ed_P
+1
because the text is only a copy of
http://forum.porteus.org/viewtopic.php? ... 697#p34093
with an additional link to "http://www.meizu-mx5.com/"

Re: Network file naming

Posted: 01 Jul 2015, 18:25
by francois
@long123:

You remove that link of yours that has nothing with this thread and which seems undoubtly spam. Default from complying will result in banning of the porteus forum.

Well seen guys.

Re: Network file naming

Posted: 01 Jul 2015, 19:50
by sunnysideofthesun
Just a thought (total offtopic): are you guys trying to reason with spambot?

Re: Network file naming

Posted: 01 Jul 2015, 20:03
by Seva
im not a bot (trust me)