This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6678 - console shell pathname expansion

Other Parts Discussed in Thread: ASH

In the serial I/O console for the EVM, the shell does not appear to have pathname expansion enabled. Is it possible to turn it on?

  • It does not happen to me. I have my c6678 up using NAND boot. I got the following

    / #
    / # cd proc/fs
    /proc/fs # cat /proc/cpuinfo
    CPU:            C66x
    Core revision:  0x0
    Core voltage:   1.2
    Core id:        0
    SoC cores:      8
    MMU:            none
    FPU:            yes
    Silicon rev:    unknown
    Clocking:       1000MHz
    BogoMips:       999.42
    Calibration:    1998848 loops
    /proc/fs #

  • I get the same results as you for the above commands, but I don't see what that has to do with how the shell is acting.

    An example of what I am mentioning is:

    / # ls /bin/*

    ls: /bin/*: No such file or directory

    but ls works if I don't specify path expansion characters:

    / # ls -1 /bin

    addgroup

    ...

     

    Also I can't set the parameter to enable pathname expansion

    / # set +f

    sh: set: +f: invalid option

    And some builtins like getopts are not available

    Is this a matter of how the shell is configured in busybox?

  • Hi,

    I don't think "set" is an option can be enabled during the build, but getopt or getopts may be. The .config file in linux-c6x-project/busybox_config provides what can be built into busybox. I do see GETOPT and ASH_GETOPTS are options but currently disabled, but don't know if we really want to enable ASH_GETOPTS. I don't see anywhere to enable path expansion. All "ls" features are enabled. It could mean that path expansion is not supported unless I miss the config define in the .config file.

    Rex