>>>>> "Binand" == Binand Sethumadhavan <[EMAIL PROTECTED]> writes:

    Binand> USM Bish posted in linux-india-help:
    >> Devdas, I did not get the meaning of NUL from the keyboard
    >> point of view. Do you mean 'space' by itself ? This too can be
    >> escaped.

    Binand> Nul is ASCII 0x0. Nul and '/' (ASCII 0x2f) are the only
    Binand> two characters that cannot appear in a Unix filename.

    Binand> Nul, because it is the "end of string" marker. /, because
    Binand> it is the path separator.

    Binand> Follow up question: What would happen if I did:

    Binand> char *p = ""; mkdir (p, ...); ?

[EMAIL PROTECTED] /tmp]$ echo 'main(){char *p="";mkdir(p,0700);perror("mkdir");}'>1.c
[EMAIL PROTECTED] /tmp]$ make 1
cc     1.c   -o 1
[EMAIL PROTECTED] /tmp]$ ./1
mkdir: No such file or directory
[EMAIL PROTECTED] /tmp]$

I like this... any more funky Linux/Unix questions?

-- Raju
-- 
Raj Mathur                [EMAIL PROTECTED]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to