AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Brace Expansion not working, AIX 5.2 and 5.3

    Posted Mon March 16, 2009 02:36 PM

    Originally posted by: olddawgnewtrix


    The following command:
    mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat/a}

    shown in this article:
    http://www.ibm.com/developerworks/aix/library/au-badunixhabits.html

    doesn't work for me on our AIX 5.2 and AIX 5.3 machines. It's the brace expansion that's not working.

    I've tried bsh and ksh using the 'chsh' utility, with no luck. Works on my home linux box using pdksh.
    Any clues? Could this be disabled for some reason? I'm pretty green, so if it's obvious, sorry!

    TIA,
    #AIX-Forum


  • 2.  Re: Brace Expansion not working, AIX 5.2 and 5.3

    Posted Wed March 18, 2009 09:07 AM

    Originally posted by: nagger


    I think the article is wrong.
    There is nothing like this in the manual page for mkdir.

    ta N
    #AIX-Forum


  • 3.  Re: Brace Expansion not working, AIX 5.2 and 5.3

    Posted Wed March 18, 2009 10:57 AM

    Originally posted by: SystemAdmin


    It's not a mkdir thing. It's a shell thing, specifically ksh93.
    #AIX-Forum


  • 4.  Re: Brace Expansion not working, AIX 5.2 and 5.3

    Posted Wed March 25, 2009 06:09 PM

    Originally posted by: olddawgnewtrix


    Thx. changed to ksh93, and it works!
    #AIX-Forum