faq: [#6288] IFS can not be modified in hush(2010)

Document created by Aaronwu Employee on Sep 11, 2013
Version 1Show Document
  • View in full screen mode

[#6288] IFS can not be modified in hush

Submitted By: Aaron Wu

Open Date

2010-10-12 05:12:14     Close Date

2011-02-10 05:57:54

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

STAMP

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

2010R1-RC4

App binary format:

FLAT     

Summary: IFS can not be modified in hush

Details:

 

IFS can not be modified in hush.

 

How to reproduce:

1)boot up 2010R1 Linux on a blackfin board

2)try to modify the IFS var for shell, you will find something interesting, like:

 

root:/> IFS=':'

root:/>

>

>

 

 

More details:

In cgi scripts for netaudio, IFS are dynamically changed to properly parse the command, examples can be found on the target board: /home/httpd/www/html/cgi-bin/ps.cgi or cp.cgi. In the 09R1 version, when set IFS to '+', the command can be successfully parsed for following switch-case handling, while in later version including the 2010R1, it can not. Actually trying to modify the IFS in the statement IFS='+' in ps.cgi causes the shell to behave abnormally.

 

Follow-ups

 

--- Mike Frysinger                                           2010-10-13 15:00:47

you might as well report this upstream rather than going through our tracker:

https://bugs.busybox.net/

 

--- Aaron Wu                                                 2010-10-13 22:55:42

Thanks Mike, I have reported a bug there

 

--- Aaron Wu                                                 2010-10-22 07:15:22

Have got the feedback from the busyboxy maintainer, it's fixed and will be

released in busybox version 1.18.x. bug 6198 syntax error in the netaudio

testing is pending on this

 

--- Sonic Zhang                                              2011-02-10 02:41:34

Aaron, please check if this bug disappears after Mike update busybox to 1.18.2.

 

--- Aaron Wu                                                 2011-02-10 05:57:54

Yes, I tried the trunk and this bug is fixed. Bug 6198 is depend on this, will

verify it once the sound part upgrading for AD1836a is finished

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes