Skip to content

Comments

busybox compatible prefix removal#74

Open
MakiseKurisu wants to merge 1 commit intoasb:masterfrom
MakiseKurisu:patch-1
Open

busybox compatible prefix removal#74
MakiseKurisu wants to merge 1 commit intoasb:masterfrom
MakiseKurisu:patch-1

Conversation

@MakiseKurisu
Copy link

When running this script under busybox's sh/ash, prefix removel works from the beginning of the variable:

# ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#mmcblk0p};echo $PART_NUM
/dev/mmcblk0p2
# ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#/dev/mmcblk0p};echo $PART_NUM
2

When running this script under busybox's sh/ash, prefix removel works from the beginning of the variable:

# ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#mmcblk0p};echo $PART_NUM
/dev/mmcblk0p2
# ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#/dev/mmcblk0p};echo $PART_NUM
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant