-
Notifications
You must be signed in to change notification settings - Fork 828
Closed
Description
One of the examples on the front page,
file=$(echo `basename "$file"`)
is a useless use of echo, and could be rewritten as
file=$(basename "$file")
or, just using parameter expansion in POSIX shell, without the need for an external program:
file=${file#*/}; file=${file%.*}
Metadata
Metadata
Assignees
Labels
No labels