Thread: UNIX query

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2009
    Posts
    7
    Rep Power
    0

    UNIX query


    Why shouldn’t you have filename beginning with a '-'?
  2. #2
  3. Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    Superior, CO, USA
    Posts
    2,419
    Rep Power
    1716
    How many test questions are you going to post?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Middle Europa
    Posts
    1,198
    Rep Power
    17
    Originally Posted by aadi_uni
    Why shouldn’t you have filename beginning with a '-'?
    unix allow EVERY character in filename EXCEPT the '/' and the
    'NULL terminator', that is in C '\0'

    however, you get a lot of probls if you use special chars.
    imagine what happens if in a filename contains say
    aaa|bbb
    aaa&bbb
    -aaa
    aaa bbb
    and so on, all legal filenames
    every standard tool will fail!!!! and you really need to be a seasoned
    sys-adm to fix this crap
    working on Solaris[5-9], preferred languages french and C.

IMN logo majestic logo threadwatch logo seochat tools logo