Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/local/bin/bash
# Copyright 2021 David Farrell
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
Expand Down Expand Up @@ -344,7 +344,7 @@ jp_pop () {
if [ $JP_STACKSIZE -eq 0 ];then
jp_error "cannot pop an empty stack" || return
elif [ $JP_STACKSIZE -eq 1 ];then
JP_OUT="${JP_STACK:0:-2}"
JP_OUT="${JP_STACK:0:${#JP_STACK}-2}"
JP_STACK=
else
JP_OUT="${JP_STACK%%$JP_SEP*}"
Expand Down