EmbDev.net

Forum: ARM programming with GCC/GNU tools My program ls does not change the directory after putting it as an argument


Author: Kirkina Alya (Company: no) (alya)
Posted on:
Attached files:

Rate this post
0 useful
not useful
I attached the program to the file
See what the problem is, I enter the command into the console ./ls /bin:
   [aid_media_rw
  ..    [aid_media_rw
  fs    [aid_media_rw
  bus    [aid_media_rw
  dev    [aid_media_rw
  ccci    [aid_media_rw
  devices    [aid_media_rw
  block    [aid_media_rw
  class    [aid_media_rw
  power    [aid_media_rw
  firmware    [aid_media_rw
  kernel    [aid_media_rw
  mtk_rgu    [aid_media_rw
  mtk_ssw    [aid_media_rw
  module    [aid_media_rw
  mtuart    [aid_media_rw
  sys_info    [aid_media_rw
  board_properties    [aid_media_rw
  bootinfo    [aid_media_rw
And now I'm referring to the program by going to the folder where I want 
to output the files.
Run /mnt/programs/ls .
 [root    
  ..    [root    
  fs    [root    
  bus    [root    
  dev    [root    
  ccci    [root    
  devices    [root    
  block    [root    
  class    [root    
  power    [root    
  firmware    [root    
  kernel    [root    
  mtk_rgu    [root    
  mtk_ssw    [root    
  module    [root    
  mtuart    [root    
  sys_info    [root    
  board_properties    [root    
  bootinfo    [root    
How to see the username is different in two outputs. I still can not 
understand what the problem is and ask for help!

Author: Kirkina Alya (Company: no) (alya)
Posted on:

Rate this post
0 useful
not useful
Problem solved

Author: Wegstabenverbuchsler (Guest)
Posted on:

Rate this post
0 useful
not useful
Kirkina A. wrote:
> Problem solved

bad behaviour!

Author: Kirkina Alya (Company: no) (alya)
Posted on:

Rate this post
0 useful
not useful
Wegstabenverbuchsler wrote:
> Kirkina A. wrote:
> Problem solved
>
> bad behaviour!

t's not for you to judge what my behavior is, so get into your cave and 
sit there like a mouse.

Author: kkk (Guest)
Posted on:

Rate this post
0 useful
not useful
Kirkina A. wrote:
> Wegstabenverbuchsler wrote:
>> Kirkina A. wrote:
>> Problem solved
>>
>> bad behaviour!
>
> t's not for you to judge what my behavior is, so get into your cave and
> sit there like a mouse.

very bad behaviour!


How you solved it?

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig