Giter Site home page Giter Site logo

brgl / busybox Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 41.0 30.09 MB

The Swiss Army Knife of Embedded Linux - private tree

License: Other

Makefile 0.72% C 94.46% Shell 3.75% C++ 0.55% HTML 0.11% Perl 0.05% Python 0.06% Awk 0.01% Lex 0.09% Yacc 0.19%

busybox's Issues

sed canโ€™t handle emoji characters

#!/bin/sh
emoji="\U1f300-\U1f5ff\U1f900-\U1f9ff\U1f600-\U1f64f\U1f680-\U1f6ff\U2600-\U26ff\U2700-\U27bf\U1f1e6-\U1f1ff\U1f191-\U1f251\U1f004\U1f0cf\U1f170-\U1f171\U1f17e-\U1f17f\U1f18e\U3030\U2b50\U2b55\U2934-\U2935\U2b05-\U2b07\U2b1b-\U2b1c\U3297\U3299\U303d\U00a9\U00ae\U2122\U23f3\U24c2\U23e9-\U23ef\U25b6\U23f8-\U23fa"
sample="This ๐Ÿ’ is โญ a ๐Ÿข line ๐Ÿคฎ of ๐Ÿ˜ƒ emoji โœˆ"
echo $sample
echo $sample | LC_ALL=UTF-8 sed -e "s/[$(printf $emoji)]//g"

The preceding script can obtain normal execution results on other Linux operating systems (such as centos). However, if the script is executed on OpenWRT, an error message is displayed sed: bad regex Invalid character range or the correct result cannot be obtained after execution. Attempts were made to change the sed version to 4.8 but the problem persisted. Is this bash or is the system environment incomplete?

Attempts were made to change the sed version to 4.8 but the problem persisted
emoji="\U1f300-\U1f5ff" Trying to shorten emoji also works on centos, not openwrt

Unzip does not retain timestamps

The normal unzip behavior is to retain the timestamps and permissions of original compressed data. From testing, it looks like busybox version does neither.

help wanted: I want to get custom ENV variable in mdev

Hi, can you help me ?
I want to match MY_DEVICE_ID and then to exec some script,
example in /etc/mdev.conf
$MY_DEVICE_ID=201 root:root 660 @/bin/sh mount.sh
But, it is not good.
when I use ACTION, it is okay,
$ACTION=add root:root 660 @/bin/sh mount.sh
that is good
I know the ACTION is system ENV variable, so, what different with them?
Is the mdev not to do any thing when receiving custom ENV variable?

Look forward to your reply,
thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.