nareshkamboju

printf -v not supported

May 25th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Run script on host and Android target
  2. cat prints.sh
  3. fun() {
  4. printf -v __RET '%x' "0xabcd"
  5. echo $__RET
  6. }
  7. fun
  8.  
  9. $ ./prints.sh
  10. abcd
  11. $ adb push prints.sh /data/local/
  12. $ adb shell chmod 777 /data/local/
  13. $ adb shell /data/local/prints.sh
  14. usage: printf FORMAT [ARGUMENT...]
  15.  
  16. Format and print ARGUMENT(s) according to FORMAT, using C printf syntax
  17. (% escapes for cdeEfgGiosuxX, \ escapes for abefnrtv0 or \OCTAL or \xHEX).
  18.  
  19. printf: Unknown option v
Add Comment
Please, Sign In to add comment